Skip to content

Commit

Permalink
Skip unnecessary condition
Browse files Browse the repository at this point in the history
If this is false, we'll bail anyway.
  • Loading branch information
sebmarkbage committed Apr 24, 2023
1 parent 6b56558 commit 1d7418a
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,9 @@ function extractEvents(
if (submitterAction != null) {
// The submitter overrides the form action.
action = submitterAction;
if (typeof action === 'function') {
// If the action is a function, we don't want to pass its name
// value to the FormData since it's controlled by the server.
submitter = null;
}
// If the action is a function, we don't want to pass its name
// value to the FormData since it's controlled by the server.
submitter = null;
}
}

Expand Down

0 comments on commit 1d7418a

Please sign in to comment.