refactor: make CancelEditProfile asynchronous and await LoadUserProfile
This commit is contained in:
@@ -267,11 +267,11 @@
|
||||
/// EN: Cancel profile editing.
|
||||
/// VI: Hủy chỉnh sửa hồ sơ.
|
||||
/// </summary>
|
||||
private void CancelEditProfile()
|
||||
private async Task CancelEditProfile()
|
||||
{
|
||||
isEditingProfile = false;
|
||||
// Reload to reset changes
|
||||
LoadUserProfile();
|
||||
await LoadUserProfile();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user