Show POA as symbol when using POA network
This commit is contained in:
parent
542b533833
commit
6e24c61f30
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue