From 69b974f6e849bc000519f501126aab32ef9cea2d Mon Sep 17 00:00:00 2001 From: MickWang <1244134672@qq.com> Date: Thu, 2 May 2024 15:50:31 +0800 Subject: [PATCH] update history issue --- store/zksync/transfersHistory.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/store/zksync/transfersHistory.ts b/store/zksync/transfersHistory.ts index 8b76f80e9..6e58adb55 100644 --- a/store/zksync/transfersHistory.ts +++ b/store/zksync/transfersHistory.ts @@ -124,9 +124,9 @@ export const useZkSyncTransfersHistoryStore = defineStore("zkSyncTransfersHistor } const response = await loadNextWithdrawals(); const mappedTransfers = response.items.map(mapApiTransfer); - transfers.value = filterOutDuplicateTransfers(mappedTransfers); + withdrawals.value = filterOutDuplicateTransfers(mappedTransfers); //TODO put withdrawals into local storage - for (const withdrawal of transfers.value.filter((e) => e.type === "withdrawal")) { + for (const withdrawal of withdrawals.value.filter((e) => e.type === "withdrawal")) { if (!userTransactions.value.find((e) => e.transactionHash === withdrawal.transactionHash)) { const eraNetworks = getNetworkInfo(withdrawal); const obj = {