From f5f045e8f1497a1a867806544ba8b2e6980116cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Kaan=20K=C3=B6se?= Date: Sat, 9 Nov 2024 20:48:43 +0100 Subject: [PATCH] Fix issue when account count is miscalculated for free access. --- Wino.Mail.ViewModels/AccountManagementViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wino.Mail.ViewModels/AccountManagementViewModel.cs b/Wino.Mail.ViewModels/AccountManagementViewModel.cs index 1e03cc0c..68b88016 100644 --- a/Wino.Mail.ViewModels/AccountManagementViewModel.cs +++ b/Wino.Mail.ViewModels/AccountManagementViewModel.cs @@ -429,7 +429,7 @@ namespace Wino.Mail.ViewModels HasUnlimitedAccountProduct = await _storeManagementService.HasProductAsync(StoreProductType.UnlimitedAccounts); if (!HasUnlimitedAccountProduct) - IsAccountCreationBlocked = Accounts.Count >= FREE_ACCOUNT_COUNT; + IsAccountCreationBlocked = Accounts.Sum(a => a.HoldingAccountCount) >= FREE_ACCOUNT_COUNT; else IsAccountCreationBlocked = false; });