Skip to content

Commit

Permalink
la til customPath som egen type i ContentCommonData
Browse files Browse the repository at this point in the history
  • Loading branch information
taniaholst committed Nov 11, 2024
1 parent b2481de commit 6ad8621
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ContentProps } from 'types/content-props/_content-common';
export const SamledeVarsler = ({ content }: { content: ContentProps }) => {
const malgruppeErArbeidsgiver = content.data?.audience?._selected === 'employer';
const path = content.data?.customPath;
const pathIncludesArbeidsgiver = path.includes('/arbeidsgiver');
const pathIncludesArbeidsgiver = path?.includes('/arbeidsgiver');
const feilKortUrl = malgruppeErArbeidsgiver && !pathIncludesArbeidsgiver;

return (
Expand Down

0 comments on commit 6ad8621

Please sign in to comment.