From f1496084bb8d8d495b56d425ef4d58b133fb390e Mon Sep 17 00:00:00 2001 From: zeppi Date: Thu, 1 Jul 2021 17:16:34 -0400 Subject: [PATCH] fix bug canceling pending check early --- dist/bundle.es.js | 4 +++- src/redux/actions/claims.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 6eb1d1d..8f10413 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -4585,7 +4585,9 @@ const doCheckPendingClaims = onConfirmed => (dispatch, getState) => { })); } checkPendingCallbacks.forEach(cb => cb()); - clearInterval(checkPendingInterval); + if (Object.keys(pendingById).length === 0) { + clearInterval(checkPendingInterval); + } }); } }); diff --git a/src/redux/actions/claims.js b/src/redux/actions/claims.js index 03e1b78..0af072c 100644 --- a/src/redux/actions/claims.js +++ b/src/redux/actions/claims.js @@ -1023,7 +1023,9 @@ export const doCheckPendingClaims = (onConfirmed: Function) => ( ); } checkPendingCallbacks.forEach(cb => cb()); - clearInterval(checkPendingInterval); + if (Object.keys(pendingById).length === 0) { + clearInterval(checkPendingInterval); + } }); } });