Skip to content

Commit d759d73

Browse files
Update RegisterForm.tsx
1 parent 6c8c6f5 commit d759d73

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/components/auth/RegisterForm.tsx

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,6 @@ const RegisterForm = ({ onToggleMode }: RegisterFormProps): JSX.Element => {
3434

3535
const { toast } = useToast();
3636

37-
const onTestAccount = async () => {
38-
const { error } = await supabase.auth.signInAnonymously();
39-
40-
if (!error) {
41-
toast({
42-
title: "Welcome!",
43-
description: "You have successfully signed in as a guest.",
44-
});
45-
void navigate("/dashboard");
46-
}
47-
};
48-
4937
const handleRegister = async (e: React.FormEvent) => {
5038
e.preventDefault();
5139
setLoading(true);
@@ -220,16 +208,6 @@ const RegisterForm = ({ onToggleMode }: RegisterFormProps): JSX.Element => {
220208
>
221209
Sign In
222210
</Button>
223-
<Button
224-
variant="outline"
225-
className="w-full border-brand-400 text-brand-100"
226-
onClick={() => {
227-
void onTestAccount();
228-
}}
229-
type="button"
230-
>
231-
Create Test Account
232-
</Button>
233211
</div>
234212
</form>
235213
);

0 commit comments

Comments
 (0)