Skip to content

Commit

Permalink
display correct flyUnstaking amount in staking modal card
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-d committed Apr 16, 2024
1 parent f8d6016 commit 4a4e5d2
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -487,12 +487,9 @@ const FlyStakingStatsModal = ({ visible, close, showConnectWalletModal, shouldUp
}
>
<div className="flex-column">
<Text size="lg" prominent>{
(() => {
const s = getValueFromFlyAmount(new BN(flyStaked.toString()))?.toString();
if (!s) return flyStaked.toString();
return s;
})() }</Text>
<Text size="lg" prominent>
{getValueFromFlyAmount(flyUnstaking) ?? flyUnstaking.toString()}
</Text>
<div className="text-with-info-popup">
<Text size="lg">Unstaking</Text>
<InfoCircle className="info-circle-grey" />
Expand Down

0 comments on commit 4a4e5d2

Please sign in to comment.