Fix pending publishes

This fixes an issue where claim_list_mine is called even after a claim
is confirmed.

Also updating time check interval to 30s from 10s.
This commit is contained in:
Thomas Zarebczan 2018-06-15 19:16:23 -04:00
parent a90870e1f9
commit 96cdf2029f

View file

@ -281,7 +281,7 @@ export const doCheckPendingPublishes = () => (dispatch: Dispatch, getState: GetS
dispatch(batchActions(...actions));
if (!Object.keys(pendingPublishes).length) {
if (!Object.keys(pendingPublishMap).length) {
clearInterval(publishCheckInterval);
}
});
@ -291,6 +291,6 @@ export const doCheckPendingPublishes = () => (dispatch: Dispatch, getState: GetS
checkFileList();
publishCheckInterval = setInterval(() => {
checkFileList();
}, 10000);
}, 30000);
}
};