GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: display global errors from useWaitlist hook in desktop waitlist … · pingdotgg/t3code@5a09744

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/web/src/components/clerk
    • DesktopClerkWaitlist.tsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/web/src/components/clerk/DesktopClerkWaitlist.tsx‎

Copy file name to clipboardExpand all lines: apps/web/src/components/clerk/DesktopClerkWaitlist.tsx
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ function DesktopClerkWaitlistForm({ onSignIn }: { onSignIn: () => void }) {
3232
const [requestError, setRequestError] = useState<string | null>(null);
3333
const isSubmitting = fetchStatus === "fetching";
3434
const fieldError = errors.fields.emailAddress?.longMessage;
35+
const globalError = errors.global?.[0]?.longMessage ?? errors.global?.[0]?.message ?? null;
3536

3637
const submitWaitlist = async (event: React.FormEvent<HTMLFormElement>) => {
3738
event.preventDefault();
@@ -74,7 +75,7 @@ function DesktopClerkWaitlistForm({ onSignIn }: { onSignIn: () => void }) {
7475
title="Join the waitlist"
7576
subtitle="Enter your email address and we’ll let you know when your spot is ready"
7677
/>
77-
<DesktopClerkAlert>{fieldError ?? requestError}</DesktopClerkAlert>
78+
<DesktopClerkAlert>{fieldError ?? globalError ?? requestError}</DesktopClerkAlert>
7879
<form className="space-y-8 text-left" onSubmit={submitWaitlist}>
7980
<label className="block space-y-2" htmlFor="desktop-clerk-waitlist-email">
8081
<span className="text-sm font-semibold text-foreground">Email address</span>

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.