title: Error in event handler for "click": "ReferenceError: user is not defined"
body: <p>Please help me. I have been working for days trying to fix this error and keep ending back up at the same click handler error "user not defined" I just can't figure out what it means... this is a vuejs/vuex/vuetify/firestore project. Please any help would be appreciated. </p>
  
  <p>relevant code from <code>store/index.js</code></p>
  
  <pre class="lang-js prettyprint-override"><code> updateUser({ commit, state },
          payload) {
          commit('setLoading', true);
          commit('clearError');
          firebase
              .firestore()
              .collection('users').doc(`users/${user.uid}`).add()
              .then((data, payload) =&gt; {
                  const key = data.key;
                  let displayName = payload.name;
                  let address = payload.address;
                  let city = payload.city;
                  let state1 = payload.state1
                  let zip = payload.zip
                  let country = payload.country
                  let company = payload.company
                  let email = payload.email
                  let phoneNumber = payload.phone
                  commit('updateUser', {
                      id: key,
                      name: displayName,
                      phone: phoneNumber,
                      email: email,
                      address: address,
                      city: city,
                      state1: state1,
                      zip: zip,
                      country: country,
                      company: company
                  })
              }).catch(err =&gt; {
                  console.log(err)
              })
      },
  </code></pre>
  
  <p>Component code...</p>
  
  <pre class="lang-js prettyprint-override"><code>methods: {
    onUpdate() { 
      this.$store.dispatch("updateUser", { 
        email: this.email, 
        name: this.name, 
        company: this.company, 
        address: this.address, 
        city: this.city, 
        state1: this.state1, 
        zip: this.zip, 
        country: this.zip, 
        phone: this.phone, 
      });
    },
  </code></pre>