Skip to content

Commit

Permalink
fix: user submit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
m8vago committed May 7, 2024
1 parent 2feaf24 commit 1013135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/crux-ui/src/hooks/use-submit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ const useSubmit = (): SubmitHook => {

stateRef.current.submit = target
if (stateRef.current.submitWhenSet) {
stateRef.current.submitWhenSet = false
if (target) {
stateRef.current.submitWhenSet = false
await target()
}
}
Expand Down

0 comments on commit 1013135

Please sign in to comment.