1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-29 00:57:50 +02:00

proper null check for sales (#1563)

This commit is contained in:
mihaisc 2022-07-01 02:56:36 -07:00 committed by GitHub
parent 64d702ce51
commit 423a4d90ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ export default function AssetStats() {
return ( return (
<footer className={styles.stats}> <footer className={styles.stats}>
{asset.stats.orders === 0 ? ( {!asset || !asset?.stats || asset?.stats?.orders === 0 ? (
'No sales yet' 'No sales yet'
) : ( ) : (
<> <>