Skip to content

Commit

Permalink
fix: Voting end time display
Browse files Browse the repository at this point in the history
  • Loading branch information
clockworkgr committed Sep 18, 2024
1 parent 4a40fef commit 5cd29da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/proposals/ProposalWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,8 @@ const timeTo = (dateString: string) => {
const now = dayjs.utc();
const to = dayjs.utc(dateString);
const diff = dayjs.duration(to.diff(now));
return diff.format("D [d] : H [hr] : m [m] [left]");
const days = Math.floor(diff.asDays());
return days + " d : " + diff.format("H [hr] : m [m] [left]");
};
function isTabSelected(tabName: TabNames) {
Expand Down

0 comments on commit 5cd29da

Please sign in to comment.