diff --git a/src/components/Process/ConfirmVoteModal.tsx b/src/components/Process/ConfirmVoteModal.tsx index 317daf5..b72fbd5 100644 --- a/src/components/Process/ConfirmVoteModal.tsx +++ b/src/components/Process/ConfirmVoteModal.tsx @@ -17,11 +17,32 @@ export const ConfirmVoteModal = ({ elections, answers }: QuestionsConfirmationPr {t('process.spreadsheet.confirm.description')} - {Object.values(elections).map(({ election, voted, isAbleToVote }) => { + {Object.values(elections).map(({ election, isAbleToVote }) => { const canAbstain = election.resultsType.name === ElectionResultsTypeNames.MULTIPLE_CHOICE && election.resultsType.properties.canAbstain const eAnswers = answers[election.id] + if (!isAbleToVote) { + return ( + + + + {election.title.default} + + + {t('vote.not_able_to_vote')} + + + + ) + } return ( <> ) => ({ voted_description: t('cc.vote.voted_description').toString(), voted_description_multielection: t('cc.vote.voted_description_multielection').toString(), voted_title: t('cc.vote.voted_title').toString(), + not_able_to_vote: t('cc.vote.not_able_to_vote').toString(), }, empty: t('cc.empty').toString(), errors: { diff --git a/src/i18n/locales/ca.json b/src/i18n/locales/ca.json index 406e185..6209b96 100644 --- a/src/i18n/locales/ca.json +++ b/src/i18n/locales/ca.json @@ -78,6 +78,7 @@ "button_update": "Torna a enviar el vot", "confirm": "Confirma les teves seleccions:", "sign": "Signa abans de votar", + "not_able_to_vote": "No pots votar en aquest procés", "voted_description": "Per verificar el teu vot, pots utilitzar aquesta identificació única: {{ id }}", "voted_description_multielection": "Per verificar el teu vot, pots utilitzar aquestes identificacions úniques: {{ ids }}", "voted_title": "El teu vot s'ha registrat amb èxit!" diff --git a/src/i18n/locales/es.json b/src/i18n/locales/es.json index 3e29f65..0c2c247 100644 --- a/src/i18n/locales/es.json +++ b/src/i18n/locales/es.json @@ -78,6 +78,7 @@ "button_update": "Reenviar voto", "confirm": "Confirma tus selecciones:", "sign": "Firma antes de votar", + "not_able_to_vote": "No puedes votar en este proceso", "voted_description": "Para verificar tu voto, puedes utilizar este identificador único: {{ id }}", "voted_description_multielection": "Para verificar tu voto, puedes utilizar estos identificadores únicos: {{ ids }}", "voted_title": "¡Tu voto se ha registrado con éxito!"