forked from LaconicNetwork/cosmos-explorer
use toFixed(2) to limit decimals to two places.
This commit is contained in:
@@ -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