From 8275683cc1c2e5f482027dfd2fcabccd671be4a6 Mon Sep 17 00:00:00 2001 From: Dong-Ha Kim Date: Tue, 31 Oct 2023 15:33:03 +0100 Subject: [PATCH] fixup --- src/views/DepositStatus/utils.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/DepositStatus/utils.ts b/src/views/DepositStatus/utils.ts index f710fa900..0c46b0147 100644 --- a/src/views/DepositStatus/utils.ts +++ b/src/views/DepositStatus/utils.ts @@ -11,7 +11,7 @@ export function convertForDepositQuery( const { sendDepositArgs, quote } = fromBridgePagePayload; return { - depositId: data.parsedDepositLog.args.depositId || 0, + depositId: Number(data.parsedDepositLog.args.depositId || 0), depositTime: data.depositTimestamp || Math.floor(Date.now() / 1000), status: "pending" as const, filled: "0", @@ -48,7 +48,9 @@ export function convertForFillQuery( const { sendDepositArgs, quote } = fromBridgePagePayload; return { - depositId: data.depositByTxHash.parsedDepositLog.args.depositId || 0, + depositId: Number( + data.depositByTxHash.parsedDepositLog.args.depositId || 0 + ), depositTime: data.depositByTxHash.depositTimestamp || Math.floor(Date.now() / 1000), status: "filled" as const,