Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
dohaki committed Oct 31, 2023
1 parent 6ac0cfc commit 8275683
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/views/DepositStatus/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 8275683

Please sign in to comment.