@movalib/movalib-commons 1.1.67 → 1.1.68

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.
@@ -124,7 +124,7 @@ var MovaLogin = function (_a) {
124
124
  newForm.email = (0, Tools_1.validateField)(form.email, Validator_1.validateEmail, 'Adresse email invalide');
125
125
  }
126
126
  if (movaAppType === Enums_1.MovaAppType.INDIVIDUAL) {
127
- newForm.email = (0, Tools_1.validateField)(form.phoneNumberEmail, function (value) { return !!value; }, 'Champ obligatoire');
127
+ newForm.phoneNumberEmail = (0, Tools_1.validateField)(form.phoneNumberEmail, function (value) { return !!value; }, 'Champ obligatoire');
128
128
  }
129
129
  newForm.password = (0, Tools_1.validateField)(form.password, function (value) { return !!value; }, 'Champ obligatoire');
130
130
  // Validator pour le mot de passe
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movalib/movalib-commons",
3
- "version": "1.1.67",
3
+ "version": "1.1.68",
4
4
  "description": "Bibliothèque d'objets communs à l'ensemble des projets React de Movalib",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/MovaLogin.tsx CHANGED
@@ -99,7 +99,7 @@ const MovaLogin: FunctionComponent<MovaLoginProps> = ({ loading, movaAppType, on
99
99
  }
100
100
 
101
101
  if(movaAppType === MovaAppType.INDIVIDUAL){
102
- newForm.email = validateField(form.phoneNumberEmail, value => !!value, 'Champ obligatoire');
102
+ newForm.phoneNumberEmail = validateField(form.phoneNumberEmail, value => !!value, 'Champ obligatoire');
103
103
  }
104
104
 
105
105
  newForm.password = validateField(form.password, value => !!value, 'Champ obligatoire');