diff --git a/packages/page-referenda/src/Referenda/RefOngoing.tsx b/packages/page-referenda/src/Referenda/RefOngoing.tsx
index ae2a3b10ec..70dc16a619 100644
--- a/packages/page-referenda/src/Referenda/RefOngoing.tsx
+++ b/packages/page-referenda/src/Referenda/RefOngoing.tsx
@@ -126,16 +126,14 @@ function Ongoing ({ isMember, members, palletReferenda, palletVote, value: { id,
/>
- {preimage && (
-
- )}
+
|
>
);
diff --git a/packages/page-referenda/src/Referenda/Vote.tsx b/packages/page-referenda/src/Referenda/Vote.tsx
index 0e6946c5be..9bedee4a3b 100644
--- a/packages/page-referenda/src/Referenda/Vote.tsx
+++ b/packages/page-referenda/src/Referenda/Vote.tsx
@@ -18,10 +18,10 @@ interface Props {
isMember: boolean;
members?: string[];
palletVote: PalletVote;
- preimage: Preimage;
+ preimage?: Preimage;
}
-function Voting ({ id, isConvictionVote, isMember, members, palletVote, preimage: { proposal } }: Props): React.ReactElement | null {
+function Voting ({ id, isConvictionVote, isMember, members, palletVote, preimage }: Props): React.ReactElement | null {
const { t } = useTranslation();
const { api } = useApi();
const { hasAccounts } = useAccounts();
@@ -43,12 +43,14 @@ function Voting ({ id, isConvictionVote, isMember, members, palletVote, preimage
size='large'
>
- ('If this proposal is passed, the changes will be applied via dispatch and the deposit returned.')}>
-
-
+ {preimage && (
+ ('If this proposal is passed, the changes will be applied via dispatch and the deposit returned.')}>
+
+
+ )}
('The vote will be recorded for this account. If another account delegated to this one, the delegated votes will also be counted.')}>