Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SatooRu65536 committed Nov 25, 2024
1 parent 8fe781b commit 3b83146
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/_components/LoginProvider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ function LoginPage() {
e.preventDefault();

try {
const { data, error } = await supabase.auth.signInWithPassword({ email, password });
if (error != null) throw new Error(error.message);
const { data } = await supabase.auth.signInWithPassword({ email, password });
if (data.user?.id == null) throw new Error('No user id');

// eslint-disable-next-line no-console
Expand Down

0 comments on commit 3b83146

Please sign in to comment.