Skip to content

Commit

Permalink
WIP on (no branch)
Browse files Browse the repository at this point in the history
  • Loading branch information
oivindkulsrud committed Sep 23, 2024
1 parent a5d509b commit 7d4dc00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion cypress/e2e/alle_tester.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import './run-1/korrigering-ferie-spm-infotekst.cy'
import './run-1/utkast-korrigering.cy'
import './run-1/over-sytti.cy'
import './run-1/tilbakedatert.cy'
// import './run-1/gammel-oppsummering.cy'

import './run-2/datovelger_komp.cy'
import './run-2/endring-uten-endring.cy'
Expand Down
6 changes: 4 additions & 2 deletions src/components/sporsmal/typer/radio-timer-prosent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const RadioTimerProsent = ({ sporsmal }: SpmProps) => {
const feilmelding = hentFeilmelding(sporsmal)
const { valgtSoknad } = useSoknadMedDetaljer()

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

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

Expand Down Expand Up @@ -129,7 +129,9 @@ const RadioTimerProsent = ({ sporsmal }: SpmProps) => {
<Vis
hvis={
errors[hentUndersporsmal(sporsmal!, 'HVOR_MYE_TIMER_VERDI')!.id] &&
rodeUkeDagerIPerioden(valgtSoknad!.fom, valgtSoknad!.tom)
rodeUkeDagerIPerioden(valgtSoknad!.fom, valgtSoknad!.tom) &&
validerGrad!() == true

}
render={() => (
<ReadMore header={lavereProsentHjelpTittel}>
Expand Down

0 comments on commit 7d4dc00

Please sign in to comment.