We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1acc16c commit 94f5025Copy full SHA for 94f5025
services/frontend/src/views/Login.vue
@@ -133,8 +133,8 @@ const onSubmit = form.handleSubmit(async (values) => {
133
errorToHandle.name = e.name;
134
errorToHandle.message = e.message;
135
// 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;
+ if ('status' in e && typeof (e as Error & { status?: number }).status === 'number') {
+ errorToHandle.status = (e as Error & { status: number }).status;
138
}
139
140
0 commit comments