File tree Expand file tree Collapse file tree 3 files changed +2
-7
lines changed
apps/dolly-frontend/src/main/js/src/components
bestillingsveileder/stegVelger/steg/steg2 Expand file tree Collapse file tree 3 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ const Steg2: React.FC = () => {
82
82
< div >
83
83
< PdlfForm />
84
84
{ getValues ( 'fullmakt' ) && < FullmaktForm /> }
85
- { ( getValues ( 'nomdata' ) || getValues ( 'egenAnsattDatoFom ' ) ) && < NavAnsatt /> }
85
+ { ( getValues ( 'nomdata' ) || getValues ( 'skjerming ' ) ) && < NavAnsatt /> }
86
86
{ getValues ( 'aareg' ) && < AaregForm /> }
87
87
{ getValues ( sigrunstubPensjonsgivendeAttributt ) && < SigrunstubPensjonsgivendeForm /> }
88
88
{ getValues ( sigrunstubSummertSkattegrunnlagAttributt ) && (
Original file line number Diff line number Diff line change @@ -8,15 +8,12 @@ import { useFormContext } from 'react-hook-form'
8
8
import { SkjermingForm } from '@/components/fagsystem/skjermingsregister/form/SkjermingForm'
9
9
10
10
const nomdataPath = [ 'nomdata' ]
11
- const skjermingPaths = [ 'skjerming.egenAnsattDatoFom' ]
12
- // const skjermingPaths = ['skjerming.egenAnsattDatoFom', 'skjerming.egenAnsattDatoTom']
13
- // const skjermingPaths = ['skjerming']
11
+ const skjermingPaths = [ 'skjerming.egenAnsattDatoFom' , 'skjerming.egenAnsattDatoTom' ]
14
12
const panelPaths = [ nomdataPath , skjermingPaths ] . flat ( )
15
13
16
14
export const NavAnsatt = ( ) => {
17
15
const formMethods = useFormContext ( )
18
16
19
- //TODO: Skjeming vises ikke naar bare den er valgt
20
17
return (
21
18
< Vis attributt = { panelPaths } >
22
19
< Panel
Original file line number Diff line number Diff line change @@ -131,9 +131,7 @@ const getValgteAttributter = (values) => {
131
131
}
132
132
133
133
export const erForsteEllerTest = ( values , attributter ) => {
134
- console . log ( 'attributter: ' , attributter ) //TODO - SLETT MEG
135
134
const valgteAttributter = getValgteAttributter ( values )
136
- console . log ( 'valgteAttributter: ' , valgteAttributter ) //TODO - SLETT MEG
137
135
return runningE2ETest ( ) || attributter . includes ( valgteAttributter [ 0 ] )
138
136
}
139
137
You can’t perform that action at this time.
0 commit comments