From d4f86bd02e95b9bee7e1ee9ded972521dff62c53 Mon Sep 17 00:00:00 2001 From: Fredrik Thorsson Date: Mon, 7 Oct 2024 15:10:04 +0200 Subject: [PATCH] feat(SW-322): simplify condition --- components/Blocks/Shortcuts/Shortcut/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Blocks/Shortcuts/Shortcut/index.tsx b/components/Blocks/Shortcuts/Shortcut/index.tsx index 88a310030..c80f3ad83 100644 --- a/components/Blocks/Shortcuts/Shortcut/index.tsx +++ b/components/Blocks/Shortcuts/Shortcut/index.tsx @@ -18,7 +18,7 @@ export default function Shortcut({ linkList }: ShortcutsListProps) { className={styles.link} > - {shortcut.text ? shortcut.text : shortcut.title} + {shortcut.text || shortcut.title}