Skip to content

Commit

Permalink
fix no iterable for claimrewards amounts (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bitcoinera authored Mar 25, 2020
1 parent eb704dc commit d668ef8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/reducers/cosmosV0-reducers.js
Original file line number Diff line number Diff line change
Expand Up @@ -783,10 +783,12 @@ function claimRewardsDetailsReducer(

function claimRewardsAmountReducer(transaction, reducers, stakingDenom) {
if (!transaction.success) {
return {
amoun: 0,
denom: stakingDenom
}
return [
{
amoun: 0,
denom: stakingDenom
}
]
}
return reducers.rewardCoinReducer(
transaction.events
Expand Down

0 comments on commit d668ef8

Please sign in to comment.