fix: don't wipe existing limits when refresh returns no data

This commit is contained in:
SuperDooper
2026-05-08 16:24:31 +02:00
parent 19b1751e78
commit 9134b8945d
+1 -5
View File
@@ -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;