diff --git a/src/libs/data/data.js b/src/libs/data/data.js index f296a163..d0f86aa4 100644 --- a/src/libs/data/data.js +++ b/src/libs/data/data.js @@ -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 diff --git a/src/router/index.js b/src/router/index.js index a4a2768f..9ceb14a4 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -314,6 +314,10 @@ const router = new VueRouter({ layout: 'full', }, }, + { + path: 'index.php', + redirect: '/', + }, { path: '*', redirect: '/error/error-404',