Skip to content

Commit

Permalink
Fix reward type and itn rewards
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBenc committed Nov 9, 2020
1 parent f4235b8 commit be67250
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ const StakingRewardItem = ({stakingReward}: {stakingReward: StakingReward}) => {
<div className="space-between">
<div>
<div>
<div className="label">Reward for epoch {stakingReward.forEpoch}</div>
{stakingReward.forEpoch ? (
<div className="label">Reward for epoch {stakingReward.forEpoch}</div>
) : (
<div className="label">Reward for ITN</div>
)}
<div className="margin-bottom">
<EpochDateTime epoch={stakingReward.epoch} dateTime={stakingReward.dateTime} />
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/frontend/wallet/shelley-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ const ShelleyWallet = ({
...poolInfo,
},
rewardDetails,
value: accountInfo.rewards || 0,
value: accountInfo.rewards ? parseInt(accountInfo.rewards, 10) : 0,
}
}

Expand Down

0 comments on commit be67250

Please sign in to comment.