Skip to content

Commit

Permalink
Fix removing warning from production build (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam187 authored and Patrick Burtchaell committed Nov 5, 2019
1 parent b8e4b0a commit 4118328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export default function middleware({ dispatch } = {}) {
return createPromise()({ dispatch });
}

if (process && process.env && (process.env.NODE_ENV === 'development' || 'test')) {
if (process && process.env && process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line no-console
console.warn(`Redux Promise Middleware: As of version 6.0.0, the \
middleware library supports both preconfigured and custom configured \
Expand Down

0 comments on commit 4118328

Please sign in to comment.