Skip to content

Commit ba16604

Browse files
committed
Fix typescript check
1 parent 97534f4 commit ba16604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/iou/request/step/IOURequestStepAmount.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ type IOURequestStepAmountProps = IOURequestStepAmountOnyxProps &
5858

5959
function getTaxAmount(transaction: OnyxEntry<OnyxTypes.Transaction>, policy: OnyxEntry<OnyxTypes.Policy>, newAmount: number) {
6060
if (!transaction?.amount) {
61-
return;
61+
return 0;
6262
}
6363
const transactionTaxCode = transaction?.taxCode ?? '';
6464
const defaultTaxCode = TransactionUtils.getDefaultTaxCode(policy, transaction) ?? '';

0 commit comments

Comments
 (0)