Skip to content

Commit ac1ae45

Browse files
committed
legg til fallback på title på hovedsiden
1 parent cb4e374 commit ac1ae45

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: packages/nextjs/src/components/pages/form-intermediate-step-page/FormIntermediateStepPage.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export type FormIntermediateStepPageProps = ContentCommonProps & {
2828

2929
export const FormIntermediateStepPage = (props: FormIntermediateStepPageProps) => {
3030
const { language, data } = props;
31-
const { illustration, textAboveTitle, formNumbers } = data;
31+
const { title, illustration, textAboveTitle, formNumbers } = data;
3232
const { currentStepData, backUrl, previousStepTitle } = useFormIntermediateStepPage(props);
3333

3434
const getTranslations = translator('form', language);
@@ -37,7 +37,7 @@ export const FormIntermediateStepPage = (props: FormIntermediateStepPageProps) =
3737
<div className={style.formIntermediateStepPage}>
3838
<IllustrationStatic illustration={illustration} className={style.pictogram} />
3939
<HeaderWithParent
40-
contentProps={{ data: { title: currentStepData.overrideTitle } }}
40+
contentProps={{ data: { title: currentStepData.overrideTitle ?? title } }}
4141
textAboveTitle={textAboveTitle}
4242
className={style.header}
4343
formNumbers={formNumbers}

Diff for: packages/nextjs/src/types/content-props/form-intermediate-step.ts

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export type StepOptions = {
1414
export type SelectableStep = {
1515
formNumberStepData: string | undefined;
1616
label: string;
17-
title: string;
1817
explanation: string;
1918
languageDisclaimer?: string;
2019
nextStep: OptionSetSingle<StepOptions>;

0 commit comments

Comments
 (0)