From 4bd61ac3beb27f4c51cf2b8b352dde1c995926e4 Mon Sep 17 00:00:00 2001 From: pk910 Date: Tue, 5 Nov 2024 11:36:35 +0100 Subject: [PATCH] fix duplicate deposit detection --- ui-package/src/components/SubmitDepositsForm/DepositsTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-package/src/components/SubmitDepositsForm/DepositsTable.tsx b/ui-package/src/components/SubmitDepositsForm/DepositsTable.tsx index 26601b89..e9f5a472 100644 --- a/ui-package/src/components/SubmitDepositsForm/DepositsTable.tsx +++ b/ui-package/src/components/SubmitDepositsForm/DepositsTable.tsx @@ -172,7 +172,7 @@ const DepositsTable = (props: IDepositsTableProps): React.ReactElement => { return { deposits: json.map((deposit: IDeposit) => { deposit.validity = verifyDeposit(deposit, signingDomain); - deposit.depositTxs = depositTxs.filter((tx: IDepositTx) => tx.pubkey === deposit.pubkey); + deposit.depositTxs = depositTxs.filter((tx: IDepositTx) => tx.pubkey === "0x" + deposit.pubkey); return deposit; }), loadDepositsErr: loadDepositsErr,