From 069a3de0b5e94b1186315a90e5724a9a3d8b97b1 Mon Sep 17 00:00:00 2001 From: James Gray <101061708+randombeeper@users.noreply.github.com> Date: Wed, 3 Jul 2024 18:00:28 -0500 Subject: [PATCH] fix(apply form): Update ApplyForm.js (#2270) * fix(apply form): Update ApplyForm.js The "Thank you!" is misleading in this case because people think they've submitted the form but haven't because it was a duplicate. Made a change to make the situation more clear. * react noob --- packages/website/src/components/ApplyForm.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/website/src/components/ApplyForm.js b/packages/website/src/components/ApplyForm.js index 6e0bcd09..b61f5ba1 100644 --- a/packages/website/src/components/ApplyForm.js +++ b/packages/website/src/components/ApplyForm.js @@ -75,18 +75,21 @@ function ApplyForm() { if (state.status === 'succeed' && state.message) { return ( - Thank you! -
- {state.message.startsWith('Your DocSearch') ? ( + <> + URL Already Submitted! +
{state.message} + ) : ( <> + Thank You! +