Skip to content

Commit

Permalink
Merge pull request Expensify#40229 from tienifr/fix/39699
Browse files Browse the repository at this point in the history
fix error message appears briefly after changing tax rate
  • Loading branch information
lakchote authored Apr 17, 2024
2 parents 967f9b0 + dafc42b commit 290f482
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/libs/TransactionUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,10 @@ function getUpdatedTransaction(transaction: Transaction, transactionChanges: Tra

if (Object.hasOwn(transactionChanges, 'taxAmount') && typeof transactionChanges.taxAmount === 'number') {
updatedTransaction.taxAmount = isFromExpenseReport ? -transactionChanges.taxAmount : transactionChanges.taxAmount;
shouldStopSmartscan = true;
}

if (Object.hasOwn(transactionChanges, 'taxCode') && typeof transactionChanges.taxCode === 'string') {
updatedTransaction.taxCode = transactionChanges.taxCode;
shouldStopSmartscan = true;
}

if (Object.hasOwn(transactionChanges, 'billable') && typeof transactionChanges.billable === 'boolean') {
Expand Down

0 comments on commit 290f482

Please sign in to comment.