Fix issue when account count is miscalculated for free access.
This commit is contained in:
@@ -429,7 +429,7 @@ namespace Wino.Mail.ViewModels
|
|||||||
HasUnlimitedAccountProduct = await _storeManagementService.HasProductAsync(StoreProductType.UnlimitedAccounts);
|
HasUnlimitedAccountProduct = await _storeManagementService.HasProductAsync(StoreProductType.UnlimitedAccounts);
|
||||||
|
|
||||||
if (!HasUnlimitedAccountProduct)
|
if (!HasUnlimitedAccountProduct)
|
||||||
IsAccountCreationBlocked = Accounts.Count >= FREE_ACCOUNT_COUNT;
|
IsAccountCreationBlocked = Accounts.Sum(a => a.HoldingAccountCount) >= FREE_ACCOUNT_COUNT;
|
||||||
else
|
else
|
||||||
IsAccountCreationBlocked = false;
|
IsAccountCreationBlocked = false;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user