|
@@ -333,12 +333,12 @@ export const AuthContextProvider: React.FC = ({children}) => {
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
LOGGING.log('AUTH', 'error', "An error occured when trying to authenticate user: " + response.type)
|
|
LOGGING.log('AUTH', 'error', "An error occured when trying to authenticate user: " + response.type)
|
|
- setAlert({title: 'Login error', message: "Something went wrong while logging in. Please try again.", callback: () => {}, type: 'error'})
|
|
|
|
|
|
+ setAlert({title: 'Login error', message: "Something went wrong while logging in. Please try again.", callback: () => setAuthStateLoading(false), type: 'error'})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
catch (error) {
|
|
catch (error) {
|
|
LOGGING.log('AUTH', 'error', "An error occured when trying to authenticate user: " + error)
|
|
LOGGING.log('AUTH', 'error', "An error occured when trying to authenticate user: " + error)
|
|
- setAlert({title: 'Login error', message: "Something went wrong while logging in. Please try again.", callback: () => {}, type: 'error'})
|
|
|
|
|
|
+ setAlert({title: 'Login error', message: "Something went wrong while logging in. Please try again.", callback: () => setAuthStateLoading(false), type: 'error'})
|
|
}
|
|
}
|
|
|
|
|
|
return {success: false}
|
|
return {success: false}
|