diff --git a/Wallet/CountCategoriesHandler.cs b/Wallet/CountCategoriesHandler.cs index 439db04..1431971 100644 --- a/Wallet/CountCategoriesHandler.cs +++ b/Wallet/CountCategoriesHandler.cs @@ -21,7 +21,8 @@ public class CountCategoriesHandler(IDbContextFactory dbContextFa }) .ToListAsync(cancellationToken: cancellationToken); - var categoryCounts = await context.Items.Where(x => !string.IsNullOrEmpty(x.Category)) + var categoryCounts = await context.Items.Where(x => x.State != 2 && + !string.IsNullOrEmpty(x.Category)) .GroupBy(i => i.Category) .Select(g => new { diff --git a/Wallet/WalletActivatedHandler.cs b/Wallet/WalletActivatedHandler.cs index 4a7919a..91993bf 100644 --- a/Wallet/WalletActivatedHandler.cs +++ b/Wallet/WalletActivatedHandler.cs @@ -22,7 +22,8 @@ public class WalletActivatedHandler(IWalletHostCollection Wallets, { if (host.Services.GetRequiredService() is IServiceFactory serviceFactory) { - if (serviceFactory.Create(descriptor.Name, false) + if (serviceFactory.Create(args => args.Initialize(), + descriptor.Name, false) is WalletNavigationViewModel viewModel) { publisher.Publish(Insert.As(index, viewModel),