Skip to content

Commit

Permalink
removing eslint suppression line
Browse files Browse the repository at this point in the history
  • Loading branch information
abzokhattab committed Jul 2, 2024
1 parent 04efac7 commit a41d3b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand All @@ -3193,7 +3192,6 @@ export default {
message += ' category limit';
}
}

return message;
},
reviewRequired: 'Review required',
Expand Down
4 changes: 1 addition & 3 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand All @@ -3695,7 +3694,6 @@ export default {
message += ' el límite de la categoría';
}
}

return message;
},
reviewRequired: 'Revisión requerida',
Expand Down

0 comments on commit a41d3b0

Please sign in to comment.