From 4829e0847808389cffa9f39cea32655da0ee9ef4 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Fri, 1 Mar 2024 12:23:06 +0000 Subject: [PATCH] Only render privacyy policy if data present --- .../things/PrivacyPolicyDetails.astro | 3 +- web/src/pages/[...listing].astro | 46 ++++++++----------- 2 files changed, 21 insertions(+), 28 deletions(-) diff --git a/web/src/components/things/PrivacyPolicyDetails.astro b/web/src/components/things/PrivacyPolicyDetails.astro index e60e25a..1dad121 100644 --- a/web/src/components/things/PrivacyPolicyDetails.astro +++ b/web/src/components/things/PrivacyPolicyDetails.astro @@ -22,6 +22,7 @@ const getIconName = (clasification: string) => { --- +{priv && (
{(priv.points && priv.points.length) > 0 && ( @@ -74,7 +75,7 @@ const getIconName = (clasification: string) => { )}
- +)}