From 31272cc6c76ed10bb49a7a9bb02815603f169e17 Mon Sep 17 00:00:00 2001 From: Danh Date: Thu, 20 Jul 2023 15:18:06 +0700 Subject: [PATCH] dont save empty hash --- src/state/transactions/reducer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/state/transactions/reducer.ts b/src/state/transactions/reducer.ts index 3d8465e098..4eff51e27a 100644 --- a/src/state/transactions/reducer.ts +++ b/src/state/transactions/reducer.ts @@ -32,8 +32,8 @@ export default createReducer(initialState, builder => ) => { const chainTxs = transactions[chainId] ?? {} const txs = (firstTxHash && chainTxs[firstTxHash]) || [] - if (txs.find(e => e.hash === hash)) { - // duplicate + if (!hash || txs.find(e => e.hash === hash)) { + // duplicate or not found hash return } txs.push({