Skip to content

Commit

Permalink
Fix small receipt text error
Browse files Browse the repository at this point in the history
  • Loading branch information
haakomol committed Sep 23, 2024
1 parent c5586d7 commit 92a8034
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/common/components/motebehov/MotebehovKvittering.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { texts as MeldBehovTextsSM } from "@/pages/sykmeldt/motebehov/meld.page"
import { texts as MeldBehovTextsAG } from "@/pages/arbeidsgiver/[narmestelederid]/motebehov/meld.page";
import { getFullDateFormat } from "@/common/utils/dateUtils";
import { Motebehov } from "types/shared/motebehov";
import { useAudience } from "@/common/hooks/routeHooks";

const texts = {
heading: "Svaret ditt om behov for møte",
Expand All @@ -17,10 +18,12 @@ interface Props {
}

const MotebehovKvittering = ({ motebehov }: Props) => {
const { audience } = useAudience();

const behandlerVaereMedTekst =
motebehov.skjemaType === "MELD_BEHOV"
? MeldBehovTextsSM.checkboxLabelOnskerBehandlerMed
: MeldBehovTextsAG.checkboxLabelOnskerBehandlerMed;
audience === "Arbeidsgiver"
? MeldBehovTextsAG.checkboxLabelOnskerBehandlerMed
: MeldBehovTextsSM.checkboxLabelOnskerBehandlerMed;

const onskerAtBehandlerBlirMed = motebehov.svar?.forklaring?.includes(
behandlerVaereMedTekst
Expand Down

0 comments on commit 92a8034

Please sign in to comment.