Fix instant removal of pending (#123)
This commit is contained in:
parent
f308632cee
commit
ab1e68f5da
@ -345,6 +345,11 @@ export const sync = () => async (dispatch, getState) => {
|
||||
try {
|
||||
const data = await web3.eth.getTransactionReceipt(txId) || {};
|
||||
|
||||
// If data is an empty obj, then it's still pending.
|
||||
if (!('status' in data)) {
|
||||
return;
|
||||
}
|
||||
|
||||
dispatch({
|
||||
type: REMOVE_PENDING_TX,
|
||||
payload: txId,
|
||||
|
Loading…
Reference in New Issue
Block a user