@myclub_se/data-access 2.2.0 → 2.2.2

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.
@@ -1189,7 +1189,7 @@ class User {
1189
1189
  firstName: new FormControl(user?.firstName || ''),
1190
1190
  language: new FormControl(user?.language || 'sv'),
1191
1191
  lastName: new FormControl(user?.lastName || ''),
1192
- newEmail: new FormControl(user?.email || ''),
1192
+ newEmail: new FormControl(user?.newEmail || ''),
1193
1193
  newPassword: new FormControl(''),
1194
1194
  verifyPassword: new FormControl(''),
1195
1195
  password: new FormControl('')
@@ -2694,7 +2694,7 @@ class UserService {
2694
2694
  data['password'] = user.password;
2695
2695
  }
2696
2696
  if (user.newEmail) {
2697
- data['email'] = user.newEmail;
2697
+ data['new_email'] = user.newEmail;
2698
2698
  }
2699
2699
  if (user.language) {
2700
2700
  data['language'] = user.language;