aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ApartmentManager/ApartmentManager/Handler/ApartmentHandler.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/ApartmentManager/ApartmentManager/Handler/ApartmentHandler.cs b/ApartmentManager/ApartmentManager/Handler/ApartmentHandler.cs
index 61fd912..aa5f415 100644
--- a/ApartmentManager/ApartmentManager/Handler/ApartmentHandler.cs
+++ b/ApartmentManager/ApartmentManager/Handler/ApartmentHandler.cs
@@ -173,7 +173,9 @@ namespace ApartmentManager.Handler
try
{
ApartmentViewModel.UserSingleton.CurrentUser.Picture = await ImgurPhotoUploader.UploadPhotoAsync();
-
+ var tmp = ApartmentViewModel.UserSingleton.CurrentUser;
+ ApartmentViewModel.UserSingleton.CurrentUser = new User();
+ ApartmentViewModel.UserSingleton.CurrentUser = tmp;
}
catch (Exception e)
{