@movalib/movalib-commons 1.2.25 → 1.2.26
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.
|
@@ -66,10 +66,12 @@ var AccountValidation = function (_a) {
|
|
|
66
66
|
try {
|
|
67
67
|
UserService_1.default.existsByToken(token)
|
|
68
68
|
.then(function (response) {
|
|
69
|
+
var _a;
|
|
69
70
|
Logger_1.default.info(response);
|
|
70
71
|
if (response.success) {
|
|
71
72
|
// Si le compte est déjà actif, on appelle le callback de succès
|
|
72
|
-
|
|
73
|
+
if ((_a = response.data) === null || _a === void 0 ? void 0 : _a.isActive)
|
|
74
|
+
onSubmit(true, "Votre compte est activé !");
|
|
73
75
|
}
|
|
74
76
|
});
|
|
75
77
|
}
|
package/package.json
CHANGED
|
@@ -72,7 +72,8 @@ const AccountValidation: FunctionComponent<AccountValidationProps> = ({ movaAppT
|
|
|
72
72
|
|
|
73
73
|
if(response.success){
|
|
74
74
|
// Si le compte est déjà actif, on appelle le callback de succès
|
|
75
|
-
|
|
75
|
+
if(response.data?.isActive)
|
|
76
|
+
onSubmit(true, "Votre compte est activé !");
|
|
76
77
|
}
|
|
77
78
|
});
|
|
78
79
|
|