Skip to content

Commit

Permalink
Merge pull request #383 from kumulynja/fix-regression-payjoin-switch-…
Browse files Browse the repository at this point in the history
…not-shown

fix: remove repeated updateAddress call without pj uri
  • Loading branch information
i5hi authored Dec 24, 2024
2 parents 7e73481 + 40af8fa commit 0b46610
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions lib/send/listeners.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,6 @@ class SendListeners extends StatelessWidget {
Widget build(BuildContext context) {
return MultiBlocListener(
listeners: [
BlocListener<CurrencyCubit, CurrencyState>(
listenWhen: (previous, current) => previous.amount != current.amount,
listener: (context, state) {
final isLn = context.read<SendCubit>().state.isLnInvoice();
if (isLn) return;
// context.read<SendCubit>().selectWallets();
},
),
BlocListener<CurrencyCubit, CurrencyState>(
listenWhen: (previous, current) => previous.amount != current.amount,
listener: (context, state) {
context.read<SendCubit>().updateAddress(null, changeWallet: false);
},
),
BlocListener<CreateSwapCubit, SwapState>(
listenWhen: (previous, current) => previous.swapTx != current.swapTx,
listener: (context, state) async {
Expand Down

0 comments on commit 0b46610

Please sign in to comment.