fix bug canceling pending check early

This commit is contained in:
zeppi 2021-07-01 17:16:34 -04:00
parent 7b1cec5d52
commit f1496084bb
2 changed files with 6 additions and 2 deletions

4
dist/bundle.es.js vendored
View file

@ -4585,7 +4585,9 @@ const doCheckPendingClaims = onConfirmed => (dispatch, getState) => {
}));
}
checkPendingCallbacks.forEach(cb => cb());
clearInterval(checkPendingInterval);
if (Object.keys(pendingById).length === 0) {
clearInterval(checkPendingInterval);
}
});
}
});

View file

@ -1023,7 +1023,9 @@ export const doCheckPendingClaims = (onConfirmed: Function) => (
);
}
checkPendingCallbacks.forEach(cb => cb());
clearInterval(checkPendingInterval);
if (Object.keys(pendingById).length === 0) {
clearInterval(checkPendingInterval);
}
});
}
});