diff --git a/src/stilling/stilling/edit/om-stillingen/janzz/Janzz.tsx b/src/stilling/stilling/edit/om-stillingen/janzz/Janzz.tsx index e65bc21a..98243c83 100644 --- a/src/stilling/stilling/edit/om-stillingen/janzz/Janzz.tsx +++ b/src/stilling/stilling/edit/om-stillingen/janzz/Janzz.tsx @@ -23,7 +23,7 @@ const Janzz: FunctionComponent = ({ tittel }) => { const onChange = (event: React.ChangeEvent | null, value?: string) => { setInput(event?.target?.value || value || ''); - setHasValidSelection(false); // Reset valid selection status on change + setHasValidSelection(false); }; const onToggleSelected = (option: string, isSelected: boolean) => { @@ -45,7 +45,7 @@ const Janzz: FunctionComponent = ({ tittel }) => { ]; dispatch({ type: SET_JANZZ, kategori }); setInput(capitalizeEmployerName(found.label) || ''); - setHasValidSelection(true); // Mark selection as valid + setHasValidSelection(true); } } };