Skip to content

Commit

Permalink
fix: MET-2055 update tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
Sotatek-TaiTruong committed May 9, 2024
1 parent 39062a4 commit b877208
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/GovernanceVotes/OverallVote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ const VoteRate = ({ data, selectedVote }: { data: VotingChart | null; selectedVo
<Box>
Current:{" "}
{data?.numberOfYesVote !== null
? `${selectedVote == "CC" ? data?.numberOfYesVote : formatADA(data?.numberOfYesVote)} ${
? `${selectedVote == "CC" ? data?.numberOfYesVote : formatADAFull(data?.numberOfYesVote)} ${
selectedVote == "CC" ? "" : "ADA"
}`
: t("common.N/A")}{" "}
Expand All @@ -702,7 +702,7 @@ const VoteRate = ({ data, selectedVote }: { data: VotingChart | null; selectedVo
? `${
selectedVote == "CC"
? Math.ceil((data?.totalVote || 0) * (data?.threshold || 0))
: formatADA(Math.ceil((data?.totalVote || 0) * (data?.threshold || 0)))
: formatADAFull(Math.ceil((data?.totalVote || 0) * (data?.threshold || 0)))
} ${selectedVote == "CC" ? "" : "ADA"}`
: t("common.N/A")}{" "}
({formatPercent(data?.threshold)})
Expand All @@ -722,7 +722,7 @@ const VoteRate = ({ data, selectedVote }: { data: VotingChart | null; selectedVo
<Box textAlign={"left"} pl={"4px"}>
Current:{" "}
{data?.numberOfNoVotes !== null
? `${selectedVote == "CC" ? data?.numberOfNoVotes : formatADA(data?.numberOfNoVotes)} ${
? `${selectedVote == "CC" ? data?.numberOfNoVotes : formatADAFull(data?.numberOfNoVotes)} ${
selectedVote == "CC" ? "" : "ADA"
}`
: t("common.N/A")}{" "}
Expand Down

0 comments on commit b877208

Please sign in to comment.