Skip to content

Commit

Permalink
style: biome no unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
soyricardodev committed Jul 18, 2024
1 parent 9a28a31 commit 8aa786e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
19 changes: 1 addition & 18 deletions apps/gifting-concierge/src/components/auth/signup-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const signUpSchema = z
);

export default function SignUp({ redirectTo }: { redirectTo: string }) {
const { isPending, execute } = useServerAction(signUpAction);
const { execute } = useServerAction(signUpAction);

const queryString =
typeof window !== "undefined" ? window.location.search : "";
Expand Down Expand Up @@ -69,23 +69,6 @@ export default function SignUp({ redirectTo }: { redirectTo: string }) {
"border-red-500": verifyStatus === "failed",
});

async function onSubmit(values: z.infer<typeof signUpSchema>) {
if (!isPending) {
const [_data, err] = await execute({
email: values.email,
password: values.password,
});

if (err) {
toast.error(err.message);
return;
}

router.replace(`${pathname || "/"}?verify=true&email=${values.email}`);
setIsConfirmed(true);
}
}

return (
<div className="whitespace-nowrap p-5 space-x-5 overflow-hidden items-center align-top">
<RegisterForm redirectTo={redirectTo} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export function HeaderNavigation(props: HeaderNavigationProps) {

const supabase = createClient();

const { error } = await supabase.auth.signOut();
await supabase.auth.signOut();

redirect("/login");
};
Expand Down

0 comments on commit 8aa786e

Please sign in to comment.