diff --git a/src/components/proposal/ProposalHistory.tsx b/src/components/proposal/ProposalHistory.tsx index f941ef3..9d50d5d 100644 --- a/src/components/proposal/ProposalHistory.tsx +++ b/src/components/proposal/ProposalHistory.tsx @@ -63,7 +63,8 @@ const getProposalMilestones = (proposal: Proposal) => { res.push({ label: 'Succeeded', variant: 'done', - // If the executionDate is earlier than endDate, there was an early execution, so endDate executionDate is also the end date + // If the executionDate is earlier than endDate, there was an early execution, so executionDate is also the end date + // Note that in general, the exectionDate will not be defined if the proposal status is unequal to Executed date: proposal.executionDate && compareAsc(proposal.executionDate, proposal.endDate) === -1 diff --git a/src/pages/ViewProposal.tsx b/src/pages/ViewProposal.tsx index 129398c..25895b0 100644 --- a/src/pages/ViewProposal.tsx +++ b/src/pages/ViewProposal.tsx @@ -50,6 +50,14 @@ const ViewProposal = () => { return 'Starts in ' + countdownText(proposal.startDate); case ProposalStatus.Active: return 'Ends in ' + countdownText(proposal.endDate); + case ProposalStatus.Executed: + return ( + 'Executed ' + + (proposal.executionDate + ? countdownText(proposal.executionDate) + : '?') + + ' ago' + ); default: return 'Ended ' + countdownText(proposal.endDate) + ' ago'; }