Skip to content

Commit 94f5025

Browse files
committed
fix(frontend): improve error handling for login status checks
1 parent 1acc16c commit 94f5025

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/frontend/src/views/Login.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ const onSubmit = form.handleSubmit(async (values) => {
133133
errorToHandle.name = e.name;
134134
errorToHandle.message = e.message;
135135
// Check if the error has a status property (from our updated UserService)
136-
if ('status' in e && typeof (e as any).status === 'number') {
137-
errorToHandle.status = (e as any).status;
136+
if ('status' in e && typeof (e as Error & { status?: number }).status === 'number') {
137+
errorToHandle.status = (e as Error & { status: number }).status;
138138
}
139139
}
140140

0 commit comments

Comments
 (0)