Skip to content

Commit

Permalink
feat: coerce errorMessage to null if undefined (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
d4mr authored Sep 3, 2024
1 parent 3c51ff6 commit 893d7a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/schemas/transaction/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export const toTransactionSchema = (
? transaction.cancelledAt.toISOString()
: null,
errorMessage:
"errorMessage" in transaction ? transaction.errorMessage : null,
"errorMessage" in transaction ? transaction.errorMessage ?? null : null,
sentAtBlockNumber:
"sentAtBlock" in transaction ? Number(transaction.sentAtBlock) : null,
blockNumber:
Expand Down

0 comments on commit 893d7a7

Please sign in to comment.