From f4e3c836458f06ecf9a69b04d4501b9b42870254 Mon Sep 17 00:00:00 2001 From: Ricky Hanlon Date: Thu, 22 Feb 2024 13:52:57 -0500 Subject: [PATCH] Fix other strings --- packages/react-dom-bindings/src/client/ReactDOMComponent.js | 2 +- packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-dom-bindings/src/client/ReactDOMComponent.js b/packages/react-dom-bindings/src/client/ReactDOMComponent.js index 46bdd05f627d6..cc773dea4de36 100644 --- a/packages/react-dom-bindings/src/client/ReactDOMComponent.js +++ b/packages/react-dom-bindings/src/client/ReactDOMComponent.js @@ -2273,7 +2273,7 @@ function diffHydratedCustomComponent( // as a shared module for that reason. const EXPECTED_FORM_ACTION_URL = // eslint-disable-next-line no-script-url - "javascript:throw new Error('A React form was unexpectedly submitted.')"; + "javascript:throw new Error('React form unexpectedly submitted.')"; function diffHydratedGenericElement( domElement: Element, diff --git a/packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js b/packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js index 388491a79fd38..411e81180d9cf 100644 --- a/packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js +++ b/packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js @@ -1015,7 +1015,7 @@ function makeFormFieldPrefix(resumableState: ResumableState): string { const actionJavaScriptURL = stringToPrecomputedChunk( escapeTextForBrowser( // eslint-disable-next-line no-script-url - "javascript:throw new Error('A React form was unexpectedly submitted.')", + "javascript:throw new Error('React form unexpectedly submitted.')", ), );