@moonbase.sh/vue 0.3.19 → 0.3.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -208,7 +208,7 @@ var _StorefrontContextImpl = class _StorefrontContextImpl {
208
208
  });
209
209
  this.loadedStorefront = stateFactory(`${_StorefrontContextImpl.storefrontKey}_loaded`, false);
210
210
  }
211
- if (this.client.tokenStore.hasAccessToken) {
211
+ if (this.client.tokenStore.user) {
212
212
  this.currentUser.value = import_storefront_api2.schemas.identity.userSchema.parse(this.client.tokenStore.user);
213
213
  }
214
214
  this.updateStorefront();
@@ -231,6 +231,7 @@ var _StorefrontContextImpl = class _StorefrontContextImpl {
231
231
  const order = e.detail.order;
232
232
  if (order.id === this.currentOrder.value.id)
233
233
  this.resetOrder();
234
+ this.updateUser();
234
235
  });
235
236
  }
236
237
  get loadedStorefrontPromise() {