forked from LaconicNetwork/cosmos-explorer
use toFixed(2) to limit decimals to two places.
This commit is contained in:
1 parent
5522c76d0a
commit
c42bdef530
1 file changed
+1
-1
@@ -38,7 +38,7 @@ const remainingBlocks = computed(() => {
|
||||
})
|
||||
|
||||
const estimateTime = computed(() => {
|
||||
const seconds = remainingBlocks.value * store.blocktime
|
||||
const seconds = Number((remainingBlocks.value * store.blocktime).toFixed(2))
|
||||
return seconds
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user