Skip to content

Commit

Permalink
fix: App crashes after selecting rate
Browse files Browse the repository at this point in the history
  • Loading branch information
nkdengineer committed Oct 2, 2024
1 parent 526845b commit 3e79135
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 3e79135

Please sign in to comment.