Don't show 0.000

This commit is contained in:
ekzyis 2023-11-09 04:50:23 +01:00
parent f4c5bf6d2c
commit 28b9b61e9b
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ const profit = computed(() => {
return isNaN(val) ? 0 : val return isNaN(val) ? 0 : val
}) })
const format = (x, i = 3) => x === null ? null : x >= 1 ? Math.round(x) : x.toFixed(i) const format = (x, i = 3) => x === null ? null : x >= 1 ? Math.round(x) : x === 0 ? x : x.toFixed(i)
const market = ref(null) const market = ref(null)
const url = '/api/market/' + marketId const url = '/api/market/' + marketId