From 5e28d86adca551aa16e58141d2703f3a7b80388e Mon Sep 17 00:00:00 2001 From: Sara Bianchi <43245702+SaraBianchi@users.noreply.github.com> Date: Tue, 20 Feb 2024 16:04:39 +0100 Subject: [PATCH] chore: updated bando_state from backend string label (#540) --- .../ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate.jsx | 2 +- .../ItaliaTheme/View/Commons/PageHeader/PageHeaderBando.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate.jsx b/src/components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate.jsx index b6ed6a40c..462742378 100644 --- a/src/components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate.jsx +++ b/src/components/ItaliaTheme/Blocks/Listing/BandiInEvidenceTemplate.jsx @@ -228,7 +228,7 @@ const BandiInEvidenceTemplate = ({ item.bando_state?.includes('inProgress'), })} > - {intl.formatMessage(messages[item.bando_state[0]])} + {item.bando_state[1]} diff --git a/src/components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando.jsx b/src/components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando.jsx index c58d5b937..77ee91e68 100644 --- a/src/components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando.jsx +++ b/src/components/ItaliaTheme/View/Commons/PageHeader/PageHeaderBando.jsx @@ -64,7 +64,7 @@ const PageHeaderBando = ({ content }) => { size="" /> {intl.formatMessage(messages.bando)}{' '} - {intl.formatMessage(messages[content.bando_state[0]])} + {content.bando_state[1]}