diff --git a/apps/voting/app/src/components/VotePanel.js b/apps/voting/app/src/components/VotePanel.js index a9704731ae..61f1102ca0 100644 --- a/apps/voting/app/src/components/VotePanel.js +++ b/apps/voting/app/src/components/VotePanel.js @@ -111,6 +111,16 @@ const VotePanelContent = React.memo( + {description && ( + +

+ +

+

+ +

+
+ )} {metadata && (

@@ -128,16 +138,6 @@ const VotePanelContent = React.memo(

)} - {description && ( - -

- -

-

- -

-
- )} diff --git a/apps/voting/app/src/components/VotingCard/VotingCard.js b/apps/voting/app/src/components/VotingCard/VotingCard.js index d44e4b965c..1349b379e9 100644 --- a/apps/voting/app/src/components/VotingCard/VotingCard.js +++ b/apps/voting/app/src/components/VotingCard/VotingCard.js @@ -76,7 +76,7 @@ const VotingCard = React.memo( diff --git a/apps/voting/app/src/script.js b/apps/voting/app/src/script.js index a16cf127e6..5c8e466f55 100644 --- a/apps/voting/app/src/script.js +++ b/apps/voting/app/src/script.js @@ -239,8 +239,6 @@ async function loadVoteDescription(vote) { } catch (error) { console.error('Error describing vote script', error) vote.description = 'Invalid script. The result cannot be executed.' - // Clear metadata so ensure it's rendered with a description rather than question - vote.metadata = null } return vote