Delete token only if user save is successful and log user out after updating profile.
This commit is contained in:
@@ -395,7 +395,8 @@ function validateAndSaveUserAccount() {
|
||||
if (data.success) {
|
||||
//hide modal
|
||||
hideAccountInformationModal();
|
||||
successToast('Profile Updated')
|
||||
successToast('Profile Updated');
|
||||
performLogOut();
|
||||
} else {
|
||||
errorToast(data.message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user