Skip to content

Commit

Permalink
fix. Sjekke om veilederNavIdent er null eller undefined (#1242)
Browse files Browse the repository at this point in the history
  • Loading branch information
eirikv authored Sep 12, 2024
1 parent 8531d79 commit 4b51f66
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const DeltakerOgBedriftFilterGammel: FunctionComponent = () => {
const { endreFilter, filtre } = useFilterGammel();

const aktivSøketypeFraFiltre = useCallback((): Søketype => {
if (!filtre.veilederNavIdent && filtre.veilederNavIdent !== innloggetBruker.identifikator) {
if (!erNil(filtre.veilederNavIdent) && filtre.veilederNavIdent !== innloggetBruker.identifikator) {
return 'veileder';
}
if (!erNil(filtre.erUfordelt)) {
Expand Down

0 comments on commit 4b51f66

Please sign in to comment.