From 255d9a78138ad5ae1dcc825e0fb0745f31e0e38a Mon Sep 17 00:00:00 2001 From: julian Date: Thu, 9 Nov 2023 12:26:15 -0600 Subject: [PATCH] edit tx note fix --- lib/pages/wallet_view/transaction_views/edit_note_view.dart | 4 ++-- lib/providers/wallet/transaction_note_provider.dart | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/pages/wallet_view/transaction_views/edit_note_view.dart b/lib/pages/wallet_view/transaction_views/edit_note_view.dart index 5bffafca3..4a77955d1 100644 --- a/lib/pages/wallet_view/transaction_views/edit_note_view.dart +++ b/lib/pages/wallet_view/transaction_views/edit_note_view.dart @@ -197,7 +197,7 @@ class _EditNoteViewState extends ConsumerState { _note?.copyWith(value: _noteController.text) ?? TransactionNote( walletId: widget.walletId, - txid: widget.walletId, + txid: widget.txid, value: _noteController.text, ), ); @@ -215,7 +215,7 @@ class _EditNoteViewState extends ConsumerState { _note?.copyWith(value: _noteController.text) ?? TransactionNote( walletId: widget.walletId, - txid: widget.walletId, + txid: widget.txid, value: _noteController.text, ), ); diff --git a/lib/providers/wallet/transaction_note_provider.dart b/lib/providers/wallet/transaction_note_provider.dart index 716da7539..b1c8b67e8 100644 --- a/lib/providers/wallet/transaction_note_provider.dart +++ b/lib/providers/wallet/transaction_note_provider.dart @@ -30,7 +30,6 @@ class _TransactionNoteWatcher extends ChangeNotifier { .txidWalletIdEqualTo(key.txid, key.walletId) .watch(fireImmediately: true) .listen((event) { - print("AAAAAA $event"); if (event.isEmpty) { _value = null; } else { @@ -70,6 +69,6 @@ final _wiProvider = ChangeNotifierProvider.family<_TransactionNoteWatcher, final pTransactionNote = Provider.family( (ref, key) { - return ref.watch(_wiProvider(key)).value; + return ref.watch(_wiProvider(key).select((value) => value.value)); }, );