forked from cerc-io/cosmos-explorer
Fix bugs
This commit is contained in:
parent
2ba6f8b39d
commit
f42b74c01b
@ -274,7 +274,7 @@ export function formatTokenAmount(tokenAmount, fraction = 2, denom = 'uatom') {
|
|||||||
decimals = 1000000000000000000n
|
decimals = 1000000000000000000n
|
||||||
}
|
}
|
||||||
let ta = tokenAmount
|
let ta = tokenAmount
|
||||||
if (typeof tokenAmount === 'string' && tokenAmount.indexOf('.') > 1) {
|
if (typeof tokenAmount === 'string' && tokenAmount.indexOf('.') > 0) {
|
||||||
ta = tokenAmount.substring(0, tokenAmount.indexOf('.'))
|
ta = tokenAmount.substring(0, tokenAmount.indexOf('.'))
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
|
@ -314,6 +314,10 @@ const router = new VueRouter({
|
|||||||
layout: 'full',
|
layout: 'full',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'index.php',
|
||||||
|
redirect: '/',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '*',
|
path: '*',
|
||||||
redirect: '/error/error-404',
|
redirect: '/error/error-404',
|
||||||
|
Loading…
Reference in New Issue
Block a user