fix bug canceling pending check early
This commit is contained in:
parent
4cbb9a35c3
commit
b93598b0ff
2 changed files with 6 additions and 2 deletions
4
dist/bundle.es.js
vendored
4
dist/bundle.es.js
vendored
|
@ -4585,7 +4585,9 @@ const doCheckPendingClaims = onConfirmed => (dispatch, getState) => {
|
|||
}));
|
||||
}
|
||||
checkPendingCallbacks.forEach(cb => cb());
|
||||
clearInterval(checkPendingInterval);
|
||||
if (Object.keys(pendingById).length === 0) {
|
||||
clearInterval(checkPendingInterval);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1023,7 +1023,9 @@ export const doCheckPendingClaims = (onConfirmed: Function) => (
|
|||
);
|
||||
}
|
||||
checkPendingCallbacks.forEach(cb => cb());
|
||||
clearInterval(checkPendingInterval);
|
||||
if (Object.keys(pendingById).length === 0) {
|
||||
clearInterval(checkPendingInterval);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue