mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-14 17:24:51 +01:00
better number fallbacks
This commit is contained in:
parent
2a8f045efa
commit
c6307c24bd
@ -29,6 +29,8 @@ export default function PriceUnit({
|
||||
<div className={styleClasses}>
|
||||
{Number.isInteger(Number(price))
|
||||
? price
|
||||
: Number.isNaN(Number(price))
|
||||
? '-'
|
||||
: formatCurrency(Number(price), '', undefined, false, true)}{' '}
|
||||
<span>{symbol || 'OCEAN'}</span>
|
||||
{conversion && <Conversion price={price} />}
|
||||
|
@ -76,7 +76,7 @@ export default function Pool({ ddo }: { ddo: DDO }): ReactElement {
|
||||
(Number(poolTokens) / Number(totalPoolTokens)) *
|
||||
Number(oceanReserve)
|
||||
}`,
|
||||
dt: '0'
|
||||
dt: '-'
|
||||
}
|
||||
|
||||
setUserBalance(userBalance)
|
||||
|
Loading…
Reference in New Issue
Block a user