diff --git a/covas_mobile/lib/pages/EditProfile.dart b/covas_mobile/lib/pages/EditProfile.dart index 2f72190..0754bd7 100644 --- a/covas_mobile/lib/pages/EditProfile.dart +++ b/covas_mobile/lib/pages/EditProfile.dart @@ -120,11 +120,14 @@ class _EditProfileState extends State 'firstName': firstName, 'password': password, 'email': email, - 'birth': birth + 'roles': '', + 'birth': birth.toString() })); print(responsePut.statusCode); if (responsePut.statusCode == 200) { showEventDialog(context, "Votre utilisateur a été modifié"); + Navigator.pushReplacement( + context, MaterialPageRoute(builder: (_) => EditProfile())); return; } @@ -323,7 +326,7 @@ class _EditProfileState extends State } }, child: Text( - 'Ajouter', + 'Modifier le profil', style: TextStyle(color: Colors.white, fontSize: 25), ), ),