Skip to content

Commit 9a35d53

Browse files
authored
Merge pull request #62097 from software-mansion-labs/bugfix/kuba_nowakowski/offline-mode-expense-in-unreportedExpenses
Fix adding unreported expense when expense is created in offline mode
2 parents c0a6baa + e31e605 commit 9a35d53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libs/actions/IOU.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3636,7 +3636,7 @@ function getTrackExpenseInformation(params: GetTrackExpenseInformationParams): T
36363636
transactionParams: {
36373637
amount: isExpenseReport(iouReport) ? -amount : amount,
36383638
currency,
3639-
reportID: shouldUseMoneyReport && iouReport ? iouReport.reportID : undefined,
3639+
reportID: shouldUseMoneyReport && iouReport ? iouReport.reportID : CONST.REPORT.UNREPORTED_REPORT_ID,
36403640
comment,
36413641
created,
36423642
merchant,

0 commit comments

Comments
 (0)