mirror of
https://github.com/koloideal/Casha.git
synced 2026-08-08 17:51:14 +03:00
step
This commit is contained in:
@@ -377,7 +377,7 @@ class _AccountEditorOverlayState extends State<AccountEditorOverlay> {
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
if (!dash.isAddingAccount &&
|
||||
(ref.watch(accountsProvider).valueOrNull?.length ?? 0) >
|
||||
(ref.watch(accountsProvider).value?.length ?? 0) >
|
||||
1) ...[
|
||||
GestureDetector(
|
||||
onTap: () => setState(() => _showDeleteDialog = true),
|
||||
|
||||
@@ -588,7 +588,7 @@ class AccountColorPanel extends StatelessWidget {
|
||||
final accounts =
|
||||
ProviderScope.containerOf(
|
||||
dashboardContext,
|
||||
).read(accountsProvider).valueOrNull ??
|
||||
).read(accountsProvider).value ??
|
||||
[];
|
||||
|
||||
if (isDuplicateName(
|
||||
|
||||
@@ -56,7 +56,7 @@ class AccountDeleteDialog extends ConsumerWidget {
|
||||
|
||||
onConfirm();
|
||||
|
||||
final txs = ref.read(transactionsProvider).valueOrNull ?? [];
|
||||
final txs = ref.read(transactionsProvider).value ?? [];
|
||||
final accountTxs = txs
|
||||
.where((t) => t.accountId == accountId)
|
||||
.toList();
|
||||
|
||||
Reference in New Issue
Block a user