Skip to content

Commit

Permalink
Bruk onblur til validering av janzz
Browse files Browse the repository at this point in the history
  • Loading branch information
joarau committed Nov 6, 2024
1 parent e836677 commit 5f83d6b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/stilling/stilling/edit/om-stillingen/janzz/Janzz.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ const Janzz: FunctionComponent<Props> = ({ tittel }) => {
};

const onBlur = () => {
// If no valid selection is made and input is not empty, show an error message
if (!hasValidSelection && input) {
if (!hasValidSelection) {
dispatch({ type: SET_JANZZ, kategori: undefined });
}
};
Expand Down

0 comments on commit 5f83d6b

Please sign in to comment.