We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5981ce2 commit 6b28133Copy full SHA for 6b28133
src/stores/error/ErrorReducer.js
@@ -40,16 +40,16 @@ export default class ErrorReducer {
40
*/
41
const isStartRequestType = type.includes('REQUEST_') && !isFinishedRequestType;
42
43
- if (isStartRequestType === true) {
+ if (isStartRequestType) {
44
// remove the finished type that is associated with the start type because the start action has been re-dispatched
45
const { [`${type}_FINISHED`]: value, ...stateWithoutFinishedType } = state;
46
47
return stateWithoutFinishedType;
48
}
49
50
- const isError = isFinishedRequestType && error;
+ const isError = isFinishedRequestType && Boolean(error);
51
52
- if (isError === false) {
+ if (isError) {
53
return state;
54
55
0 commit comments