Skip to content

Commit

Permalink
fix(apply form): Update ApplyForm.js (#2270)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
randombeeper authored Jul 3, 2024
1 parent 8587f58 commit 069a3de
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/website/src/components/ApplyForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,21 @@ function ApplyForm() {
if (state.status === 'succeed' && state.message) {
return (
<Card className="uil-m-auto uil-ta-center apply-form">
<Heading1 className="apply-text">Thank you!</Heading1>
<br />

{state.message.startsWith('Your DocSearch') ? (
<>
<Heading1 className="apply-text">URL Already Submitted!</Heading1>
<br />
<Text
className="uil-pv-8 uil-d-block apply-text"
aria-label="Request has already been processed"
>
{state.message}
</Text>
</>
) : (
<>
<Heading1 className="apply-text">Thank You!</Heading1>
<br />
<Text
className="uil-pv-8 uil-d-block apply-text"
aria-label="Request will be processed"
Expand Down

0 comments on commit 069a3de

Please sign in to comment.