title: First response from API not updating error message Vue Axios
body: <p>I am having trouble displaying error responses to on the first submit click.</p>
  <p>The error messages pops up but only after the submit button is clicked twice. The response 400 is definitely created on the first click. With the second triggering the correct message.</p>
  <pre class="lang-html prettyprint-override"><code>&lt;div class=&quot;danger-alert&quot; v-html=&quot;error&quot; /&gt;
  </code></pre>
  <p>This is the Scripts:</p>
  <pre class="lang-js prettyprint-override"><code> export default {
      name: 'register',
      data() {
        return {
          model: {
            username: '',
            email: '',
            password: '',
            agree: false,
          }
        }
      },
      methods: {
        async onSubmit() {
          try {
            const response = await AuthenticationService.register({
              username: this.model.username,
              email: this.model.email,
              password: this.model.password,
              agree: this.model.agree
            })
  
            this.$router.push('/login')
          
          } catch (error) {
            console.log(error)
            this.error = error.response.data.error
          }
        }
      }
    }
  &lt;/script&gt;
  </code></pre>
  <pre class="lang-js prettyprint-override"><code>async register (req, res) {
      try {
        const user = await User.create(req.body)
        const userJson = user.toJSON()
        res.send({
          user: userJson,
          // token: jwtSignUser(userJson)
        })
        // res.send('Sign Up successfully')
      } catch (error) {
        console.log(error)
        res.status(400).send({
          error: 'This account is already in use.'
        })
      }
    }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/FuBPH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FuBPH.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/PVXpZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PVXpZ.png" alt="enter image description here" /></a></p>