diff --git a/src/lib/hooks/data/useBegrunnelse.tsx b/src/lib/hooks/data/useBegrunnelse.tsx index 2dfbba174..ea44881e8 100644 --- a/src/lib/hooks/data/useBegrunnelse.tsx +++ b/src/lib/hooks/data/useBegrunnelse.tsx @@ -1,5 +1,4 @@ import {useBehandlingsId} from "../common/useBehandlingsId"; -import {useConfigFeatureFlags} from "../../config"; import * as React from "react"; import {useEffect} from "react"; import { @@ -15,8 +14,6 @@ import {logAmplitudeEvent} from "../../amplitude/Amplitude"; export const useBegrunnelse = () => { const behandlingsId = useBehandlingsId(); - // TODO: Avklare denne. Er det behov lenger? - const {begrunnelseNyTekst} = useConfigFeatureFlags(); const [isError, setIsError] = React.useState(false); const queryClient = useQueryClient(); const {isPending, queryKey} = useHentBegrunnelse(behandlingsId); @@ -31,7 +28,6 @@ export const useBegrunnelse = () => { logAmplitudeEvent("begrunnelse fullført", { hvaLengde: (Math.round((begrunnelse?.hvaSokesOm?.length ?? 0) / 20) - 1) * 20, hvorforLengde: (Math.round((begrunnelse?.hvorforSoke?.length ?? 0) / 20) - 1) * 20, - begrunnelseNyTekst, }); try { @@ -45,8 +41,8 @@ export const useBegrunnelse = () => { }; useEffect(() => { - logAmplitudeEvent("begrunnelse åpnet", {begrunnelseNyTekst}).then(); - }, [begrunnelseNyTekst]); + logAmplitudeEvent("begrunnelse åpnet").then(); + }, [true]); return {get, put, isPending, isError}; }; diff --git a/src/sider/02-begrunnelse/index.tsx b/src/sider/02-begrunnelse/index.tsx index 21762fc84..d2f33814b 100644 --- a/src/sider/02-begrunnelse/index.tsx +++ b/src/sider/02-begrunnelse/index.tsx @@ -24,7 +24,6 @@ import {begrunnelseSchema, FormValues, MAX_LEN_HVA, MAX_LEN_HVORFOR} from "./sch export const Begrunnelse = () => { const {get: defaultValues} = useBegrunnelse(); const {t} = useTranslation("skjema"); - // TODO: Avklare denne. Er det behov lenger? const featureFlagData = useContextFeatureToggles(); const isKategorierEnabled = featureFlagData?.["sosialhjelp.soknad.kategorier"] ?? false; const {forsorgerplikt} = useForsorgerplikt();