diff --git a/src/renderer/features/governance/components/ReferendumDetails/ProposalDescription.tsx b/src/renderer/features/governance/components/ReferendumDetails/ProposalDescription.tsx
index 5b8c604fc0..9f6049e816 100644
--- a/src/renderer/features/governance/components/ReferendumDetails/ProposalDescription.tsx
+++ b/src/renderer/features/governance/components/ReferendumDetails/ProposalDescription.tsx
@@ -3,6 +3,7 @@ import { useStoreMap, useUnit } from 'effector-react';
import { type ChainId, type Referendum } from '@shared/core';
import { pickNestedValue } from '@shared/lib/utils';
import { Markdown, Shimmering } from '@shared/ui';
+import { networkModel } from '@/entities/network';
import { TrackInfo, referendumService } from '@entities/governance';
import { detailsAggregate } from '../../aggregates/details';
@@ -15,6 +16,8 @@ type Props = {
export const ProposalDescription = ({ chainId, referendum }: Props) => {
const isDescriptionLoading = useUnit(detailsAggregate.$isDescriptionLoading);
+ const addressPrefix = useUnit(networkModel.$chains)[chainId]?.addressPrefix;
+
const description = useStoreMap({
store: detailsAggregate.$descriptions,
keys: [chainId, referendum.referendumId],
@@ -24,7 +27,7 @@ export const ProposalDescription = ({ chainId, referendum }: Props) => {
return (
-
+
{referendumService.isOngoing(referendum) &&
}
diff --git a/src/renderer/features/governance/components/ReferendumDetails/ProposerName.tsx b/src/renderer/features/governance/components/ReferendumDetails/ProposerName.tsx
index 76a9c75791..5afb8ceb46 100644
--- a/src/renderer/features/governance/components/ReferendumDetails/ProposerName.tsx
+++ b/src/renderer/features/governance/components/ReferendumDetails/ProposerName.tsx
@@ -2,7 +2,7 @@ import { useStoreMap } from 'effector-react';
import { useI18n } from '@app/providers';
import { toAddress } from '@/shared/lib/utils';
-import { type OngoingReferendum, type Referendum } from '@shared/core';
+import { type Referendum } from '@shared/core';
import { FootnoteText, Shimmering } from '@shared/ui';
import { referendumService } from '@entities/governance';
import { AccountAddress } from '@entities/wallet';
@@ -10,9 +10,10 @@ import { detailsAggregate } from '../../aggregates/details';
type Props = {
referendum: Referendum;
+ addressPrefix: number;
};
-export const ProposerName = ({ referendum }: Props) => {
+export const ProposerName = ({ referendum, addressPrefix }: Props) => {
const { t } = useI18n();
const proposer = useStoreMap({
@@ -38,12 +39,12 @@ export const ProposerName = ({ referendum }: Props) => {
address={proposer.parent.address}
name={proposer.parent.name || proposer.email || proposer.twitter || proposer.parent.address}
/>
- ) : (referendum as OngoingReferendum)?.submissionDeposit?.who ? (
+ ) : referendumService.isOngoing(referendum) && referendum.submissionDeposit?.who ? (
) : null;