Skip to content

Commit

Permalink
Fixed quote types inconsistency in a warning message (#2297)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist authored and timdorr committed Oct 6, 2017
1 parent 1bf84ee commit 7a4cc71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/combineReducers.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import warning from './utils/warning'

function getUndefinedStateErrorMessage(key, action) {
const actionType = action && action.type
const actionName = (actionType && `"${actionType.toString()}"`) || 'an action'
const actionDescription = (actionType && `action "${String(actionType)}"`) || 'an action'

return (
`Given action ${actionName}, reducer "${key}" returned undefined. ` +
`Given ${actionDescription}, reducer "${key}" returned undefined. ` +
`To ignore an action, you must explicitly return the previous state. ` +
`If you want this reducer to hold no value, you can return null instead of undefined.`
)
Expand Down

0 comments on commit 7a4cc71

Please sign in to comment.