feat(SW-322): simplify condition

This commit is contained in:
Fredrik Thorsson
2024-10-07 15:10:04 +02:00
parent c1be1619da
commit d4f86bd02e

View File

@@ -18,7 +18,7 @@ export default function Shortcut({ linkList }: ShortcutsListProps) {
className={styles.link}
>
<Body textTransform="bold" color="burgundy">
<span>{shortcut.text ? shortcut.text : shortcut.title}</span>
<span>{shortcut.text || shortcut.title}</span>
</Body>
<ArrowRightIcon color="burgundy" width={24} height={24} />
</Link>