Show POA as symbol when using POA network

This commit is contained in:
Franco Victorio 2018-07-19 16:25:39 -03:00
parent 542b533833
commit 6e24c61f30
1 changed files with 2 additions and 1 deletions

View File

@ -104,7 +104,8 @@ function parseBalance (balance) {
// Its "formatted" property is what we generally use to render values.
function formatBalance (balance, decimalsToKeep, needsParse = true, network) {
const isSokol = parseInt(network) === 77
const coinName = isSokol ? 'SPOA' : 'ETH'
const isPOA = parseInt(network) === 99
const coinName = isPOA ? 'POA' : isSokol ? 'SPOA' : 'ETH'
var parsed = needsParse ? parseBalance(balance) : balance.split('.')
var beforeDecimal = parsed[0]
var afterDecimal = parsed[1]