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

fix: back to profile page after update profile

parent d314b982
......@@ -99,14 +99,18 @@ class _ProfileEditForm extends State<ProfileEditForm> {
child: FilledButton(
onPressed: () {
if (_formKey.currentState!.validate()) {}
authProvider.updateUserDetail(
authProvider.user!.id,
usernameControler.text,
emailControler.text,
firstNameControler.text,
lastNameControler.text,
authProvider.user!.isStaff,
);
authProvider
.updateUserDetail(
authProvider.user!.id,
usernameControler.text,
emailControler.text,
firstNameControler.text,
lastNameControler.text,
authProvider.user!.isStaff,
)
.then(
(res) => Navigator.pop(context),
);
},
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