Merge pull request #86 from kjannette/states2

more
This commit is contained in:
S Jannette
2024-02-05 14:58:29 -06:00
committed by GitHub

View File

@@ -383,11 +383,10 @@ const SignupPage = () => {
navigate("/dashboard");
}
} catch (error) {
console.log("Error handling request", error, error.message);
setIsBusy(false);
setNotice(
error.message || "Sorry, something went wrong. Please try again."
);
setNotice("Sorry, something went wrong. Please try again.");
}
}
};
@@ -403,6 +402,16 @@ const SignupPage = () => {
const signupForm = (
<div className="signup-sub-container">
{showNoticeOnPage ? (
<>
<br></br>
<div className="alert alert-danger" role="alert">
{notice}
</div>
</>
) : (
<></>
)}
<div className="signup-header">
<h1 className="signup-header-text">Create A Novodraft Account</h1>
{!isUpgrade ? (
@@ -488,16 +497,6 @@ const SignupPage = () => {
/>
</div>
<div className="signup-freebie-box ">Free trial available!</div>
{showNoticeOnPage ? (
<>
<br></br>
<div className="alert alert-danger" role="alert">
{notice}
</div>
</>
) : (
<></>
)}
</div>
);
const disableIndex =