Skip to content
Permalink
Browse files

fix(docs): should be response.code instead of code (#197)

  • Loading branch information
hecktarzuli authored and pi0 committed Jan 8, 2019
1 parent ad535a2 commit d07102e51f9089988ba2b0184dd442ad4fc9d46a
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/helpers.md
@@ -17,7 +17,7 @@ Example: (`plugins/axios.js`)
```js
export default function ({ $axios, redirect }) {
$axios.onError(error => {
if(error.code === 500) {
if(error.response.status === 500) {
redirect('/sorry')
}
})

0 comments on commit d07102e

Please sign in to comment.
You can’t perform that action at this time.