Skip to content

Commit 758782a

Browse files
committed
Merge branch 'contact-step-page' of github.com:navikt/nav-enonicxp-frontend into contact-step-page
2 parents a3f17d2 + 824457e commit 758782a

4 files changed

+6
-4
lines changed

packages/nextjs/src/components/pages/contact-step-page/ContactStepPage.tsx

+6-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export type Link = LinkInternal | LinkExternal;
2525

2626
export interface LinkPanel {
2727
label: string;
28-
explanation: string;
28+
explanation?: string;
2929
link: Link;
3030
}
3131

@@ -107,9 +107,11 @@ export const ContactStepPage = (props: ContactStepPageProps) => {
107107
// analyticsLabel={step.label}s
108108
>
109109
<LinkPanel.Title>{linkPanel.label}</LinkPanel.Title>
110-
<LinkPanel.Description>
111-
{linkPanel.explanation}
112-
</LinkPanel.Description>
110+
{linkPanel.explanation && (
111+
<LinkPanel.Description>
112+
{linkPanel.explanation}
113+
</LinkPanel.Description>
114+
)}
113115
</LinkPanel>
114116
</li>
115117
))}

0 commit comments

Comments
 (0)