From b62080aa3fd39588cceec555bf60e03b7e6869cb Mon Sep 17 00:00:00 2001 From: Youssef Lourayad Date: Sat, 11 May 2024 00:05:02 +0100 Subject: [PATCH] Fix missing translation error --- src/components/MoneyRequestConfirmationList.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/MoneyRequestConfirmationList.tsx b/src/components/MoneyRequestConfirmationList.tsx index 10fb0430dec7..3f11cd3ae642 100755 --- a/src/components/MoneyRequestConfirmationList.tsx +++ b/src/components/MoneyRequestConfirmationList.tsx @@ -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; } @@ -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; }