Skip to content

Commit

Permalink
update history issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MickWang committed May 2, 2024
1 parent a33668b commit 69b974f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions store/zksync/transfersHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 69b974f

Please sign in to comment.