fix bug canceling pending check early

This commit is contained in:
zeppi 2021-07-01 17:16:34 -04:00 committed by jessopb
parent 4cbb9a35c3
commit b93598b0ff
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);
}
});
}
});