-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Fix: Incorrect system message when setting amount before the image is scanned #81666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
e00e589
c14b7fe
3cbe606
78ae535
b25a088
326869c
da5d9c1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -307,11 +307,7 @@ | |
|
|
||
| const isReportActionOriginalMessageAnObject = reportActionOriginalMessage && typeof reportActionOriginalMessage === 'object'; | ||
| const hasModifiedAmount = | ||
| isReportActionOriginalMessageAnObject && | ||
| 'oldAmount' in reportActionOriginalMessage && | ||
| 'oldCurrency' in reportActionOriginalMessage && | ||
| 'amount' in reportActionOriginalMessage && | ||
| 'currency' in reportActionOriginalMessage; | ||
| isReportActionOriginalMessageAnObject && 'oldCurrency' in reportActionOriginalMessage && 'amount' in reportActionOriginalMessage && 'currency' in reportActionOriginalMessage; | ||
|
|
||
| const hasModifiedMerchant = isReportActionOriginalMessageAnObject && 'oldMerchant' in reportActionOriginalMessage && 'merchant' in reportActionOriginalMessage; | ||
|
|
||
|
|
@@ -330,7 +326,16 @@ | |
| return getForDistanceRequest(translateLocal, reportActionOriginalMessage?.merchant ?? '', reportActionOriginalMessage?.oldMerchant ?? '', amount, oldAmount); | ||
| } | ||
| // eslint-disable-next-line @typescript-eslint/no-deprecated | ||
| buildMessageFragmentForValue(translateLocal, amount, oldAmount, translateLocal('iou.amount'), false, setFragments, removalFragments, changeFragments); | ||
| buildMessageFragmentForValue( | ||
| translateLocal, | ||
|
Check failure on line 330 in src/libs/ModifiedExpenseMessage.ts
|
||
| amount, | ||
| reportActionOriginalMessage?.oldAmount !== undefined ? oldAmount : '', | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, why do we need this? |
||
| translateLocal('iou.amount'), | ||
|
Check failure on line 333 in src/libs/ModifiedExpenseMessage.ts
|
||
| false, | ||
| setFragments, | ||
| removalFragments, | ||
| changeFragments, | ||
| ); | ||
| } | ||
|
|
||
| const hasModifiedComment = isReportActionOriginalMessageAnObject && 'oldComment' in reportActionOriginalMessage && 'newComment' in reportActionOriginalMessage; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.