Skip to content

Commit

Permalink
Fix missing translation error
Browse files Browse the repository at this point in the history
  • Loading branch information
youssef-lr committed May 10, 2024
1 parent 48de5c7 commit b62080a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/MoneyRequestConfirmationList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ function MoneyRequestConfirmationList({
const shares: number[] = Object.values(splitSharesMap).map((splitShare) => splitShare?.amount ?? 0);
const sumOfShares = shares?.reduce((prev, current): number => prev + current, 0);
if (sumOfShares !== iouAmount) {
setFormError(translate('iou.error.invalidSplit'));
setFormError('iou.error.invalidSplit');
return;
}

Expand All @@ -443,7 +443,7 @@ function MoneyRequestConfirmationList({

// A split must have at least two participants with amounts bigger than 0
if (participantsWithAmount.length === 1) {
setFormError(translate('iou.error.invalidSplitParticipants'));
setFormError('iou.error.invalidSplitParticipants');
return;
}

Expand Down

0 comments on commit b62080a

Please sign in to comment.