Skip to content

Commit

Permalink
fix(staking): currency tooltip duplication removed (#851)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5042001)
  • Loading branch information
mchappell authored and rhyslbw committed Feb 8, 2024
1 parent e61f255 commit 6f0d393
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const StakingInfo = ({
<Stats
text={t('browserView.staking.stakingInfo.totalRewards.title')}
value={
<Tooltip title={`$ ${Wallet.util.convertAdaToFiat({ ada: totalRewards.toString(), fiat })}`}>
<Tooltip title={Wallet.util.convertAdaToFiat({ ada: totalRewards.toString(), fiat })}>
<span>{totalRewards}</span>
<span className={styles.suffix}>{cardanoCoin.symbol}</span>
</Tooltip>
Expand All @@ -131,7 +131,7 @@ export const StakingInfo = ({
<Stats
text={t('browserView.staking.stakingInfo.lastReward.title')}
value={
<Tooltip title={`$ ${Wallet.util.convertAdaToFiat({ ada: lastReward.toString(), fiat })}`}>
<Tooltip title={Wallet.util.convertAdaToFiat({ ada: lastReward.toString(), fiat })}>
<span>{lastReward}</span>
<span className={styles.suffix}>{cardanoCoin.symbol}</span>
</Tooltip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export const StakingInfoCard = ({
<Stats
text={t('overview.stakingInfoCard.totalStaked')}
value={
<Tooltip title={fiat && `$ ${Wallet.util.convertAdaToFiat({ ada: totalStaked.toString(), fiat })}`}>
<Tooltip title={fiat && Wallet.util.convertAdaToFiat({ ada: totalStaked.toString(), fiat })}>
<span>{totalStaked}</span>
<span className={styles.suffix}>{cardanoCoinSymbol}</span>
</Tooltip>
Expand All @@ -163,7 +163,7 @@ export const StakingInfoCard = ({
<Stats
text={t('overview.stakingInfoCard.lastReward')}
value={
<Tooltip title={fiat && `$ ${Wallet.util.convertAdaToFiat({ ada: lastReward.toString(), fiat })}`}>
<Tooltip title={fiat && Wallet.util.convertAdaToFiat({ ada: lastReward.toString(), fiat })}>
<span>{lastReward}</span>
<span className={styles.suffix}>{cardanoCoinSymbol}</span>
</Tooltip>
Expand Down

0 comments on commit 6f0d393

Please sign in to comment.