Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update signup-email.tsx

Steven Teycff713472df2
diff --git a/apps/web/ui/auth/register/signup-email.tsx b/apps/web/ui/auth/register/signup-email.tsx
index 9ca0156597..c680046132 100644
--- a/apps/web/ui/auth/register/signup-email.tsx
+++ b/apps/web/ui/auth/register/signup-email.tsx
@@ -21,7 +21,7 @@ export const SignUpEmail = () => {
getValues,
} = useForm<SignUpProps>();
- const { executeAsync, isExecuting } = useAction(sendOtpAction, {
+ const { executeAsync, isPending } = useAction(sendOtpAction, {
onSuccess: () => {
setEmail(getValues("email"));
setPassword(getValues("password"));
@@ -57,9 +57,9 @@ export const SignUpEmail = () => {
/>
<Button
type="submit"
- text={isExecuting ? "Submitting..." : "Sign Up"}
- disabled={isExecuting}
- loading={isExecuting}
+ text={isPending ? "Submitting..." : "Sign Up"}
+ disabled={isPending}
+ loading={isPending}
/>
</div>
</form>