From f784a4d8a00053f24cca13f02b65a3321149272f Mon Sep 17 00:00:00 2001 From: Sylvain Date: Wed, 28 Sep 2022 10:47:57 +0200 Subject: [PATCH] (bug) wrong translation key hide payment mean --- CHANGELOG.md | 1 + .../components/payment-schedule/payment-schedules-table.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a904311e..dd0f15bd0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ - Script to download translations from Crowdin - Fablab's store module - Fix a bug: missing translations in PayZen configuration screens +- Fix a bug: wrong translation key prevents the display of the schedule deadline's payment mean - [TODO DEPLOY] `rails db:seed` ## v5.4.17 2022 September 06 diff --git a/app/frontend/src/javascript/components/payment-schedule/payment-schedules-table.tsx b/app/frontend/src/javascript/components/payment-schedule/payment-schedules-table.tsx index b9fba4fbd..b9e9a0c8d 100644 --- a/app/frontend/src/javascript/components/payment-schedule/payment-schedules-table.tsx +++ b/app/frontend/src/javascript/components/payment-schedule/payment-schedules-table.tsx @@ -109,7 +109,7 @@ const PaymentSchedulesTable: React.FC = ({ paymentSc const formatState = (item: PaymentScheduleItem, schedule: PaymentSchedule): JSX.Element => { let res = t(`app.shared.payment_schedules_table.state_${item.state}${item.state === 'pending' ? '_' + schedule.payment_method : ''}`); if (item.state === PaymentScheduleItemState.Paid) { - const key = `app.shared.schedules_table.method_${item.payment_method}`; + const key = `app.shared.payment_schedules_table.method_${item.payment_method}`; res += ` (${t(key)})`; } // eslint-disable-next-line fabmanager/component-class-named-as-component