Commit 5d7d06d8 authored by Ilham Maulana's avatar Ilham Maulana 💻

fix: back to profile page after update profile

parent d314b982
...@@ -99,13 +99,17 @@ class _ProfileEditForm extends State<ProfileEditForm> { ...@@ -99,13 +99,17 @@ class _ProfileEditForm extends State<ProfileEditForm> {
child: FilledButton( child: FilledButton(
onPressed: () { onPressed: () {
if (_formKey.currentState!.validate()) {} if (_formKey.currentState!.validate()) {}
authProvider.updateUserDetail( authProvider
.updateUserDetail(
authProvider.user!.id, authProvider.user!.id,
usernameControler.text, usernameControler.text,
emailControler.text, emailControler.text,
firstNameControler.text, firstNameControler.text,
lastNameControler.text, lastNameControler.text,
authProvider.user!.isStaff, authProvider.user!.isStaff,
)
.then(
(res) => Navigator.pop(context),
); );
}, },
child: const Text("Submit"), child: const Text("Submit"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment