Skip to content

Commit

Permalink
Merge pull request Expensify#42012 from Expensify/youssef_fix_missing…
Browse files Browse the repository at this point in the history
…_translation

[NO QA] Fix missing translation error
  • Loading branch information
youssef-lr authored May 10, 2024
2 parents 48de5c7 + b62080a commit ada489f
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 ada489f

Please sign in to comment.