Fix issue when account count is miscalculated for free access.

This commit is contained in:
Burak Kaan Köse
2024-11-09 20:48:43 +01:00
parent b49e1b3a97
commit f5f045e8f1

View File

@@ -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;
});