Skip to content

Commit

Permalink
putting back some stuff
Browse files Browse the repository at this point in the history
error timer
  • Loading branch information
oivindkulsrud committed Sep 23, 2024
1 parent cc1f9a4 commit 5cdc2bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/sporsmal/typer/radio-timer-prosent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,13 @@ const RadioTimerProsent = ({ sporsmal }: SpmProps) => {
if (watchTimer === undefined && timerId) {
watchTimer = getValues(timerId)
}
const errorTimer = errors[hentUndersporsmal(sporsmal!, 'HVOR_MYE_TIMER_VERDI')!.id]


const feilmelding = hentFeilmelding(sporsmal)
const { valgtSoknad } = useSoknadMedDetaljer()

const { beregnGradNy, validerGrad } = validerArbeidsgrad(sporsmal)
const { beregnGradNy } = validerArbeidsgrad(sporsmal)

const lavereProsentHjelpTittel = tekst('ekspanderbarhjelp.prosenten_lavere_enn_forventet_arbeidstaker.tittel')

Expand Down Expand Up @@ -128,9 +130,7 @@ const RadioTimerProsent = ({ sporsmal }: SpmProps) => {

<Vis
hvis={
errors[hentUndersporsmal(sporsmal!, 'HVOR_MYE_TIMER_VERDI')!.id] &&
rodeUkeDagerIPerioden(valgtSoknad!.fom, valgtSoknad!.tom) &&
validerGrad!() == true
errorTimer && rodeUkeDagerIPerioden(valgtSoknad!.fom, valgtSoknad!.tom)

}
render={() => (
Expand Down

0 comments on commit 5cdc2bc

Please sign in to comment.