From a6a909a6316a39cbd71eb655b40a2c121b060bc5 Mon Sep 17 00:00:00 2001 From: Arvid Norlin Date: Wed, 24 Apr 2024 10:46:18 +0200 Subject: [PATCH] fix: correct conditional link logic --- components/MyPages/AccountPage/Content.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/MyPages/AccountPage/Content.tsx b/components/MyPages/AccountPage/Content.tsx index b091a59ed..0fdbb1120 100644 --- a/components/MyPages/AccountPage/Content.tsx +++ b/components/MyPages/AccountPage/Content.tsx @@ -56,7 +56,7 @@ export default function Content({ user, lang, content }: ContentProps) { title: item.dynamic_content.title, // TODO: rename preamble to subtitle in Contentstack subtitle: item.dynamic_content.preamble, - ...link, + ...(link && { link }), } return (