Skip to content

Commit 893d7a7

Browse files
authored
feat: coerce errorMessage to null if undefined (#638)
1 parent 3c51ff6 commit 893d7a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/schemas/transaction/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ export const toTransactionSchema = (
288288
? transaction.cancelledAt.toISOString()
289289
: null,
290290
errorMessage:
291-
"errorMessage" in transaction ? transaction.errorMessage : null,
291+
"errorMessage" in transaction ? transaction.errorMessage ?? null : null,
292292
sentAtBlockNumber:
293293
"sentAtBlock" in transaction ? Number(transaction.sentAtBlock) : null,
294294
blockNumber:

0 commit comments

Comments
 (0)