From d6d6ff7630a9e677227e59186cbd2a9631e5f5c1 Mon Sep 17 00:00:00 2001 From: Monique Cheng Date: Sun, 21 Apr 2024 15:42:21 -0700 Subject: [PATCH] r --- src/api/supabase/queries/product_queries.ts | 2 +- src/app/login/page.tsx | 17 +++++++---------- src/components/LoginFormFolder/LoginForm.tsx | 2 +- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/src/api/supabase/queries/product_queries.ts b/src/api/supabase/queries/product_queries.ts index 67396986..85ec9fbb 100644 --- a/src/api/supabase/queries/product_queries.ts +++ b/src/api/supabase/queries/product_queries.ts @@ -64,7 +64,7 @@ export async function fetchProductByID(productId: number): Promise { if (error) { throw new Error(`Error fetching product: ${error.message}`); } - + return product; } diff --git a/src/app/login/page.tsx b/src/app/login/page.tsx index aeff396f..bae4f37c 100644 --- a/src/app/login/page.tsx +++ b/src/app/login/page.tsx @@ -40,16 +40,13 @@ export default function App() { window.location.href = '/storefront'; } }; - - async function applyFilter( - e: React.KeyboardEvent, - ) { - const keypressed = e.code; - if (keypressed === 'Enter') { - handleLogin(); - } + + async function applyFilter(e: React.KeyboardEvent) { + const keypressed = e.code; + if (keypressed === 'Enter') { + handleLogin(); + } } - return ( @@ -89,7 +86,7 @@ export default function App() { )} {errorMessage && {errorMessage}} - diff --git a/src/components/LoginFormFolder/LoginForm.tsx b/src/components/LoginFormFolder/LoginForm.tsx index 684399e6..6604f84f 100644 --- a/src/components/LoginFormFolder/LoginForm.tsx +++ b/src/components/LoginFormFolder/LoginForm.tsx @@ -8,7 +8,7 @@ export default function LoginForm(props: { isError: boolean; showPassword: boolean; }) { - const { isError, changeUserName, changePassword, showPassword} = props; + const { isError, changeUserName, changePassword, showPassword } = props; return (