1
0
Fork 0

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
This commit is contained in:
James Gray 2024-07-03 18:00:28 -05:00 committed by GitHub
parent 8587f58b03
commit 069a3de0b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"