Skip to content

Commit b64c416

Browse files
committed
fix: mark handleLogin as async to resolve vite internal server error
1 parent bbbcdbb commit b64c416

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

LocalMind-Frontend/src/shared/component/v1/LoginPage.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ const LoginPage: React.FC = () => {
7676
}
7777
setIsLoading(true)
7878

79-
try {
80-
const response = await apiService.login(email, password)
79+
const handleLogin = async () => {
80+
try {
81+
const response = await apiService.login(email, password)
8182

8283
if (!response.success) {
8384
throw new Error(response.message || 'Login failed. Please try again.')

0 commit comments

Comments
 (0)