add type-safe equality operator

This commit is contained in:
Gareth Redfern
2022-02-11 21:46:09 +00:00
parent 25232b1854
commit c5488fe1dd

View File

@@ -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')
}),