Skip to content

Commit

Permalink
Merge pull request #47060 from dominictb/fix/47022-crash
Browse files Browse the repository at this point in the history
fix: enforce transaction filename to be a string
  • Loading branch information
techievivek authored Aug 8, 2024
2 parents 4f45424 + 4916742 commit d7b0aba
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 d7b0aba

Please sign in to comment.