Skip to content

Commit

Permalink
Implement correct check in didComeBackOnline
Browse files Browse the repository at this point in the history
  • Loading branch information
emanueleDiVizio committed Oct 16, 2019
1 parent e561c2d commit d0393a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/redux/createNetworkMiddleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function checkIfActionShouldBeIntercepted(
function didComeBackOnline(action, wasConnected) {
return (
action.type === networkActionTypes.CONNECTION_CHANGE &&
!wasConnected &&
wasConnected &&
action.payload === true
);
}
Expand Down

0 comments on commit d0393a6

Please sign in to comment.