From 7c6089252d48c1b6a6275d7ab8470a590734e670 Mon Sep 17 00:00:00 2001 From: kolo Date: Sun, 29 Mar 2026 15:34:58 +0300 Subject: [PATCH] stableee --- .../add_transaction/widgets/account_selector.dart | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/features/add_transaction/widgets/account_selector.dart b/lib/features/add_transaction/widgets/account_selector.dart index 8598384..6056be1 100644 --- a/lib/features/add_transaction/widgets/account_selector.dart +++ b/lib/features/add_transaction/widgets/account_selector.dart @@ -189,10 +189,17 @@ class AccountDropdownOverlay extends ConsumerWidget { final txAccountId = ref .read(addTransactionProvider(initial)) .selectedAccountId; + final toAccountId = ref + .read(addTransactionProvider(initial)) + .toAccountId; + + final availableAccounts = accounts + .where((a) => toAccountId == null || a.id != toAccountId) + .toList(); return Column( mainAxisSize: MainAxisSize.min, - children: accounts.map((account) { + children: availableAccounts.map((account) { final isSelected = txAccountId != null && account.id == txAccountId; return InkWell(