Commit ab1e68f5 authored by Kenny Tran's avatar Kenny Tran Committed by Chi Kei Chan

Fix instant removal of pending (#123)

parent f308632c
...@@ -345,6 +345,11 @@ export const sync = () => async (dispatch, getState) => { ...@@ -345,6 +345,11 @@ export const sync = () => async (dispatch, getState) => {
try { try {
const data = await web3.eth.getTransactionReceipt(txId) || {}; const data = await web3.eth.getTransactionReceipt(txId) || {};
// If data is an empty obj, then it's still pending.
if (!('status' in data)) {
return;
}
dispatch({ dispatch({
type: REMOVE_PENDING_TX, type: REMOVE_PENDING_TX,
payload: txId, payload: txId,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment