@thefittingroom/shop-ui 0.0.6 → 0.0.7

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/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * thefittingroom v0.0.6 (2023-07-19T17:35:52.930Z)
2
+ * thefittingroom v0.0.7 (2023-07-19T19:26:21.510Z)
3
3
  * Copyright 2022-present, TheFittingRoom, Inc. All rights reserved.
4
4
  */
5
5
  /*!
@@ -36231,7 +36231,12 @@ class FittingRoom {
36231
36231
  return validationError(L.EmailError);
36232
36232
  if (!validatePassword(password))
36233
36233
  return validationError(L.PasswordError);
36234
- await this.tfrShop.user.login(username, password);
36234
+ try {
36235
+ await this.tfrShop.user.login(username, password);
36236
+ }
36237
+ catch (e) {
36238
+ return validationError(L.UsernameOrPasswordIncorrect);
36239
+ }
36235
36240
  if (this.hooks.onLogin)
36236
36241
  this.hooks.onLogin();
36237
36242
  this.nav.close();