Skip to content

Commit

Permalink
Merge pull request #50040 from nkdengineer/fix/49556
Browse files Browse the repository at this point in the history
fix: App crashes after selecting rate
  • Loading branch information
techievivek authored Oct 4, 2024
2 parents cb9d207 + a6f87a0 commit a5e5392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3543,7 +3543,7 @@ function getModifiedExpenseOriginalMessage(
const didTaxCodeChange = 'taxCode' in transactionChanges;
if (didTaxCodeChange && !didAmountOrCurrencyChange) {
originalMessage.oldTaxRate = policy?.taxRates?.taxes[TransactionUtils.getTaxCode(oldTransaction)]?.value;
originalMessage.taxRate = transactionChanges?.taxCode && policy?.taxRates?.taxes[transactionChanges?.taxCode].value;
originalMessage.taxRate = transactionChanges?.taxCode && policy?.taxRates?.taxes[transactionChanges?.taxCode]?.value;
}

// We only want to display a tax amount update system message when tax amount is updated by user.
Expand Down

0 comments on commit a5e5392

Please sign in to comment.