Skip to content

Commit

Permalink
fix(gov): queueEnd missing timestamp for user who queued proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
thevolcanomanishere committed Dec 19, 2024
1 parent 3183cb4 commit 8361a4f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,13 @@ export const ProposalTimeline = ({
} else if (status === ProposalStatus.InQueue) {
steps.push({
title: "Queue Ending",
date: proposal.queueEnd,
// Temporary fix for proposals that are in queue but have no queueEnd
date: proposal.queueEnd ?? new Date().getTime() / 1000 + 60 * 15,
isActive: false,
});
steps.push({
title: "Proposal Executable",
date: proposal.queueEnd,
date: proposal.queueEnd ?? new Date().getTime() / 1000 + 60 * 15,
isActive: false,
});
} else if (status === ProposalStatus.PendingExecution) {
Expand Down

0 comments on commit 8361a4f

Please sign in to comment.