homeflowjs 0.13.61 → 0.13.62

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homeflowjs",
3
- "version": "0.13.61",
3
+ "version": "0.13.62",
4
4
  "sideEffects": [
5
5
  "modal/**/*",
6
6
  "user/default-profile/**/*",
@@ -52,11 +52,15 @@ const UserRegisterForm = (props) => {
52
52
  }
53
53
  })
54
54
  .catch(() => {
55
- notify(
56
- 'Sorry, something went wrong. You may already have an account with this email address, if so, please try signing in instead of registering.',
57
- 'error',
58
- { duration: 8000 },
59
- );
55
+ if (userParams?.body) {
56
+ window.location.href = '/';
57
+ } else {
58
+ notify(
59
+ 'Sorry, something went wrong. You may already have an account with this email address, if so, please try signing in instead of registering.',
60
+ 'error',
61
+ { duration: 8000 },
62
+ );
63
+ }
60
64
  });
61
65
  }
62
66
  };