Commit d4b15a6d authored by vignesh mohankumar's avatar vignesh mohankumar Committed by GitHub

fix: show <.001 ETH in collection floors (#5065)

parent fe61365a
...@@ -15,6 +15,8 @@ export const formatEth = (price: number) => { ...@@ -15,6 +15,8 @@ export const formatEth = (price: number) => {
return `${Math.round(price / 1000000)}M` return `${Math.round(price / 1000000)}M`
} else if (price > 1000) { } else if (price > 1000) {
return `${Math.round(price / 1000)}K` return `${Math.round(price / 1000)}K`
} else if (price < 0.001) {
return '<0.001'
} else { } else {
return `${Math.round(price * 100 + Number.EPSILON) / 100}` return `${Math.round(price * 100 + Number.EPSILON) / 100}`
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment