From a41d3b06337db47d3f3de566196c1666d42a8555 Mon Sep 17 00:00:00 2001 From: Abdelrahman Khattab Date: Tue, 2 Jul 2024 11:01:21 +0200 Subject: [PATCH] removing eslint suppression line --- src/languages/en.ts | 4 +--- src/languages/es.ts | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/languages/en.ts b/src/languages/en.ts index e5664e957e91..fd2d282d5bbf 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -3183,8 +3183,7 @@ export default { receiptNotSmartScanned: 'Receipt not verified. Please confirm accuracy.', receiptRequired: ({formattedLimit, category}: ViolationsReceiptRequiredParams) => { let message = 'Receipt required'; - // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing - if (formattedLimit || category) { + if (formattedLimit ?? category) { message += ' over'; if (formattedLimit) { message += ` ${formattedLimit}`; @@ -3193,7 +3192,6 @@ export default { message += ' category limit'; } } - return message; }, reviewRequired: 'Review required', diff --git a/src/languages/es.ts b/src/languages/es.ts index 45b200308754..1e46f22701f0 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -3685,8 +3685,7 @@ export default { receiptNotSmartScanned: 'Recibo no verificado. Por favor, confirma tu exactitud', receiptRequired: ({formattedLimit, category}: ViolationsReceiptRequiredParams) => { let message = 'Recibo obligatorio'; - // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing - if (formattedLimit || category) { + if (formattedLimit ?? category) { message += ' para importes sobre'; if (formattedLimit) { message += ` ${formattedLimit}`; @@ -3695,7 +3694,6 @@ export default { message += ' el límite de la categoría'; } } - return message; }, reviewRequired: 'Revisión requerida',