Skip to content

Commit

Permalink
Ana/fix balances in actionmodal (#255)
Browse files Browse the repository at this point in the history
* fix action modal available balance

* include regen

* use dictionary for denomlookup
  • Loading branch information
Bitcoinera authored and faboweb committed Jan 8, 2020
1 parent 728e69e commit 75e6af8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/reducers/cosmosV0-reducers.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,13 @@ function blockReducer(networkId, block, transactions) {
}

function denomLookup(denom) {
if (denom === 'uatom') {
return 'ATOM'
const lookup = {
uatom: 'ATOM',
umuon: 'MUON',
uluna: 'LUNA',
seed: 'TREE'
}
return denom.toUpperCase()
return lookup[denom] ? lookup[denom] : denom.toUpperCase()
}

function coinReducer(coin) {
Expand Down

0 comments on commit 75e6af8

Please sign in to comment.