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
|
||||
}
|
||||
let ta = tokenAmount
|
||||
if (typeof tokenAmount === 'string' && tokenAmount.indexOf('.') > 1) {
|
||||
if (typeof tokenAmount === 'string' && tokenAmount.indexOf('.') > 0) {
|
||||
ta = tokenAmount.substring(0, tokenAmount.indexOf('.'))
|
||||
}
|
||||
// eslint-disable-next-line no-undef
|
||||
|
@ -314,6 +314,10 @@ const router = new VueRouter({
|
||||
layout: 'full',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'index.php',
|
||||
redirect: '/',
|
||||
},
|
||||
{
|
||||
path: '*',
|
||||
redirect: '/error/error-404',
|
||||
|
Loading…
Reference in New Issue
Block a user