From 9134b8945d8203fd5cf200a486978b533995f02a Mon Sep 17 00:00:00 2001 From: SuperDooper <37051355+superdooper86@users.noreply.github.com> Date: Fri, 8 May 2026 16:24:31 +0200 Subject: [PATCH] fix: don't wipe existing limits when refresh returns no data --- windows/UsageViewModel.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/windows/UsageViewModel.cs b/windows/UsageViewModel.cs index c377d41..efce49c 100644 --- a/windows/UsageViewModel.cs +++ b/windows/UsageViewModel.cs @@ -131,12 +131,8 @@ public class UsageViewModel : INotifyPropertyChanged await Application.Current.Dispatcher.InvokeAsync(() => { - Limits = limits; - Overage = overage; - Prepaid = prepaid; + if (limits.Count > 0) { Limits = limits; Overage = overage; Prepaid = prepaid; } if (!string.IsNullOrEmpty(email)) UserEmail = email; - // Trust that cookies / cached auth mean the user IS signed in, - // even if the live fetch failed this cycle. IsSignedIn = true; ErrorMessage = null; LastUpdated = DateTime.Now;