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