mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
proper null check for sales (#1563)
This commit is contained in:
parent
64d702ce51
commit
423a4d90ac
@ -7,7 +7,7 @@ export default function AssetStats() {
|
||||
|
||||
return (
|
||||
<footer className={styles.stats}>
|
||||
{asset.stats.orders === 0 ? (
|
||||
{!asset || !asset?.stats || asset?.stats?.orders === 0 ? (
|
||||
'No sales yet'
|
||||
) : (
|
||||
<>
|
||||
|
Loading…
Reference in New Issue
Block a user