From edd371198c24c3ee9edb6329437cada54c7f6762 Mon Sep 17 00:00:00 2001 From: AdrielIg Date: Thu, 29 Feb 2024 09:34:42 -0300 Subject: [PATCH] no mostrar tabla cuando no hay data --- src/components/Sections/CriptoUsd.astro | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Sections/CriptoUsd.astro b/src/components/Sections/CriptoUsd.astro index 0d1c689..ec14b8c 100644 --- a/src/components/Sections/CriptoUsd.astro +++ b/src/components/Sections/CriptoUsd.astro @@ -21,7 +21,9 @@ const { title, subtitle, exchanges } = Astro.props; { exchanges.map((exchange) => { - return ; + return exchange.data.length ? ( + + ) : null; }) }