Skip to content

Commit

Permalink
Fjern kommerntarer
Browse files Browse the repository at this point in the history
  • Loading branch information
joarau committed Nov 7, 2024
1 parent 657109b commit 0abb8be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stilling/stilling/edit/om-stillingen/janzz/Janzz.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Janzz: FunctionComponent<Props> = ({ tittel }) => {

const onChange = (event: React.ChangeEvent<HTMLInputElement> | null, value?: string) => {
setInput(event?.target?.value || value || '');
setHasValidSelection(false); // Reset valid selection status on change
setHasValidSelection(false);
};

const onToggleSelected = (option: string, isSelected: boolean) => {
Expand All @@ -45,7 +45,7 @@ const Janzz: FunctionComponent<Props> = ({ tittel }) => {
];
dispatch({ type: SET_JANZZ, kategori });
setInput(capitalizeEmployerName(found.label) || '');
setHasValidSelection(true); // Mark selection as valid
setHasValidSelection(true);
}
}
};
Expand Down

0 comments on commit 0abb8be

Please sign in to comment.