Skip to content

Commit 7d75039

Browse files
authored
Merge pull request #78250 from Expensify/francois-fix-eslint-warning
[NoQA] Suppress ESLint warning for `translateLocal` usage
2 parents e6dc28b + 097438c commit 7d75039

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/libs/ReportUtils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5316,6 +5316,7 @@ function getReportPreviewMessage(
53165316
return translateLocal(translatePhraseKey, payerDisplayName ?? '');
53175317
}
53185318
if (translatePhraseKey === 'iou.payerPaidAmount') {
5319+
// eslint-disable-next-line @typescript-eslint/no-deprecated
53195320
return translateLocal(translatePhraseKey, '', payerDisplayName ?? '');
53205321
}
53215322
}
@@ -10528,13 +10529,15 @@ function getIOUReportActionDisplayMessage(reportAction: OnyxEntry<ReportAction>,
1052810529

1052910530
if (automaticAction) {
1053010531
if (originalMessage.paymentType === CONST.IOU.PAYMENT_TYPE.EXPENSIFY) {
10532+
// eslint-disable-next-line @typescript-eslint/no-deprecated
1053110533
return translateLocal('iou.automaticallyPaidWithExpensify', '');
1053210534
}
1053310535
// eslint-disable-next-line @typescript-eslint/no-deprecated
1053410536
return translateLocal('iou.automaticallyPaidWithBusinessBankAccount', '', last4Digits);
1053510537
}
1053610538
break;
1053710539
default:
10540+
// eslint-disable-next-line @typescript-eslint/no-deprecated
1053810541
return translateLocal('iou.payerPaidAmount', '', '');
1053910542
}
1054010543
if (translationKey === 'iou.businessBankAccount') {

0 commit comments

Comments
 (0)