Skip to content

Commit

Permalink
feat: MET-2215 update feild
Browse files Browse the repository at this point in the history
  • Loading branch information
Sotatek-TaiTruong committed Jun 24, 2024
1 parent 56de84a commit bc1743e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/Dreps/DrepsList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,11 @@ const DrepsList: React.FC = () => {
</Box>
),
minWidth: "120px",
key: "participationRate",
key: "govParticipationRate",
render: (r) =>
r.participationRate != null ? (
r.govParticipationRate != null ? (
<Box data-testid="drepList.ParticipationValue" component={"span"} mr={1}>
{formatPercent(r.participationRate / 100) || `0%`}
{formatPercent(r.govParticipationRate) || `0%`}
</Box>
) : (
t("common.N/A")
Expand Down
2 changes: 1 addition & 1 deletion src/types/drep.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ interface Drep {
status: "ACTIVE" | "INACTIVE" | "RETIRED";
updatedAt: string;
votingPower: number;
participationRate?: number;
govParticipationRate?: number;
}

interface DelegationGovernanceVotesProps {
Expand Down

0 comments on commit bc1743e

Please sign in to comment.