Skip to content

Commit

Permalink
Prevent default form behaviour on submit
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyAppeldoorn committed Oct 20, 2023
1 parent 399494c commit e1bf297
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/modules/manage-team/sections/guideline/EditGuideline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,13 @@ export class EditGuideline extends Component<
}
return (
<form
onSubmit={() =>
onSubmit={(e) => {
e.preventDefault();

this.state.editing
? this.updateGuideline(mutate)
: this.createGuideline(mutate)
}
: this.createGuideline(mutate);
}}
>
<Label>
Amount of kudos
Expand Down

0 comments on commit e1bf297

Please sign in to comment.