Skip to content

Commit

Permalink
fix: add isFSA check to isError (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
pwNN authored and JaKXz committed Jan 17, 2018
1 parent 388ca8f commit b83c9ae
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 b83c9ae

Please sign in to comment.