Skip to content

Commit

Permalink
fix: add isFSA check to isError
Browse files Browse the repository at this point in the history
  • Loading branch information
pwNN authored Jan 3, 2018
1 parent 388ca8f commit 9efea41
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 @@ -12,7 +12,7 @@ export function isFSA(action) {
}

export function isError(action) {
return action.error === true;
return isFSA(action) && action.error === true;
}

function isValidKey(key) {
Expand Down

0 comments on commit 9efea41

Please sign in to comment.