From 0a30f771ee0fbb1f8a17e1f802d16f2e271d3a56 Mon Sep 17 00:00:00 2001 From: mocodesmo Date: Thu, 2 May 2024 12:32:19 +0530 Subject: [PATCH] swap receiving ui fixes --- lib/home/bloc/state.dart | 2 +- lib/swap/receive.dart | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/home/bloc/state.dart b/lib/home/bloc/state.dart index f91c2e97..f434710e 100644 --- a/lib/home/bloc/state.dart +++ b/lib/home/bloc/state.dart @@ -131,7 +131,7 @@ class HomeState with _$HomeState { Transaction? getTxFromSwap(SwapTx swap) { final isLiq = swap.walletType == BaseWalletType.Liquid; final network = swap.network; - final wallet = isLiq + final wallet = !isLiq ? getMainSecureWallet(network)?.state.wallet : getMainInstantWallet(network)?.state.wallet; if (wallet == null) return null; diff --git a/lib/swap/receive.dart b/lib/swap/receive.dart index 8d7eab68..23077e78 100644 --- a/lib/swap/receive.dart +++ b/lib/swap/receive.dart @@ -312,8 +312,9 @@ class _ReceivingSwapPageState extends State { }, child: Scaffold( appBar: AppBar( + automaticallyImplyLeading: false, flexibleSpace: BBAppBar( - text: 'Swap Received', + text: 'Payment Status', onBack: () { if (received) context.go('/home');