Skip to content

Commit b83c9ae

Browse files
pwNNJaKXz
authored andcommitted
fix: add isFSA check to isError (#99)
1 parent 388ca8f commit b83c9ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export function isFSA(action) {
1212
}
1313

1414
export function isError(action) {
15-
return action.error === true;
15+
return isFSA(action) && action.error === true;
1616
}
1717

1818
function isValidKey(key) {

0 commit comments

Comments
 (0)