diff --git a/src/main/frontend/src/pages/LoginPage.vue b/src/main/frontend/src/pages/LoginPage.vue index 8312e7b..7abcb6e 100644 --- a/src/main/frontend/src/pages/LoginPage.vue +++ b/src/main/frontend/src/pages/LoginPage.vue @@ -87,7 +87,7 @@ const attemptLogin = async () => { await api.post('/login', data) .then(() => router.push('/')) .catch((err: AxiosError) => { - if(err.response.status === 401) { + if(err.response?.status === 401) { $q.notify( { message: "Login failed. Please double check you're using the correct credentials for your Navidrome account.", position: 'top-right',