Skip to content

Commit

Permalink
fix: enforce transaction filename to be a string
Browse files Browse the repository at this point in the history
  • Loading branch information
dominictb committed Aug 8, 2024
1 parent 9c7c4a1 commit 4916742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/TransactionUtils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function buildOptimisticTransaction(
created: created || DateUtils.getDBTime(),
pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD,
receipt: receipt?.source ? {source: receipt.source, state: receipt.state ?? CONST.IOU.RECEIPT_STATE.SCANREADY} : {},
filename: receipt?.source ?? receipt?.name ?? filename,
filename: (receipt?.source ?? receipt?.name ?? filename).toString(),
category,
tag,
taxCode,
Expand Down

0 comments on commit 4916742

Please sign in to comment.