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,