Skip to content

Commit 1d7418a

Browse files
committed
Skip unnecessary condition
If this is false, we'll bail anyway.
1 parent 6b56558 commit 1d7418a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/react-dom-bindings/src/events/plugins/FormActionEventPlugin.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,9 @@ function extractEvents(
5353
if (submitterAction != null) {
5454
// The submitter overrides the form action.
5555
action = submitterAction;
56-
if (typeof action === 'function') {
57-
// If the action is a function, we don't want to pass its name
58-
// value to the FormData since it's controlled by the server.
59-
submitter = null;
60-
}
56+
// If the action is a function, we don't want to pass its name
57+
// value to the FormData since it's controlled by the server.
58+
submitter = null;
6159
}
6260
}
6361

0 commit comments

Comments
 (0)