mirror of
https://github.com/kevin-DL/breeze-next-template.git
synced 2026-01-11 10:24:29 +00:00
add type-safe equality operator
This commit is contained in:
@@ -11,7 +11,7 @@ export const useAuth = ({ middleware, redirectIfAuthenticated } = {}) => {
|
||||
.get('/api/user')
|
||||
.then(res => res.data)
|
||||
.catch(error => {
|
||||
if (error.response.status != 409) throw error
|
||||
if (error.response.status !== 409) throw error
|
||||
|
||||
router.push('/verify-email')
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user