homeflowjs 1.0.74 → 1.0.75
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
@@ -52,12 +52,12 @@ const UserRegisterForm = (props) => {
|
|
52
52
|
window.location.hash = redirectHash;
|
53
53
|
}
|
54
54
|
})
|
55
|
-
.catch(() => {
|
55
|
+
.catch((errors) => {
|
56
56
|
if (userParams?.body) {
|
57
57
|
window.location.href = '/';
|
58
58
|
} else if(errors?.password){
|
59
59
|
// this could be used for any kind of errors but we only need it for password errors right now
|
60
|
-
errors.password
|
60
|
+
errors.password?.forEach((error) => notify(error, 'error', { duration: 8000 }))
|
61
61
|
} else {
|
62
62
|
notify(
|
63
63
|
'Sorry, something went wrong. You may already have an account with this email address, if so, please try signing in instead of registering.',
|