Skip to content

Commit

Permalink
Ana/fix claim rewards denom for terra and emoney (#534)
Browse files Browse the repository at this point in the history
* fix claim rewards denom for terra and emoney

* fix again
  • Loading branch information
Bitcoinera authored Mar 27, 2020
1 parent 14d3c3b commit 99d9003
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/reducers/cosmosV2-reducers.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,14 @@ function claimRewardsDetailsReducer(
}

function claimRewardsAmountReducer(transaction, reducers, stakingDenom) {
if (!transaction.success) {
const isTxSucceded =
transaction.success ||
transaction.logs.find(({ success }) => success === true)
if (!isTxSucceded) {
return [
{
amoun: 0,
denom: stakingDenom
amount: 0,
denom: reducers.denomLookup(stakingDenom)
}
]
}
Expand Down

0 comments on commit 99d9003

Please sign in to comment.