Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Commit

Permalink
Update Claim rewards display
Browse files Browse the repository at this point in the history
  • Loading branch information
danielailie committed Mar 25, 2021
1 parent 0c417d9 commit ac79da4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 6 additions & 0 deletions react-delegationdashboard/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ interface DenominateType {
input: string;
denomination: number;
decimals: number;
showLastNonZeroDecimal: boolean;
showLastNonZeroDecimal?: boolean;
addCommas?: boolean;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ const MyDelegation = () => {
setClaimableRewards(
denominate({
denomination,
decimals,
decimals: 4,
input: value.returnData[0]?.asBigInt.toFixed(),
showLastNonZeroDecimal: false,
}) || ''
);
})
Expand All @@ -43,7 +42,6 @@ const MyDelegation = () => {
denomination,
decimals,
input: value.returnData[0]?.asBigInt.toFixed(),
showLastNonZeroDecimal: false,
}) || ''
);
setUserActiveNominatedStake(value.returnData[0]?.asBigInt.toFixed());
Expand Down

0 comments on commit ac79da4

Please sign in to comment.