exchange flow recipient address from stack selection bugfix

This commit is contained in:
julian 2024-01-16 16:03:04 -06:00
parent d3cd8d956a
commit 63b76df9ca
2 changed files with 8 additions and 3 deletions

View file

@ -224,8 +224,10 @@ class _Step2ViewState extends ConsumerState<Step2View> {
_toController.text = wallet.info.name; _toController.text = wallet.info.name;
model.recipientAddress = (await wallet model.recipientAddress = (await wallet
.getCurrentReceivingAddress())! .getCurrentReceivingAddress())
.value; ?.value ??
wallet
.info.cachedReceivingAddress;
setState(() { setState(() {
enableNext = enableNext =

View file

@ -234,7 +234,10 @@ class _DesktopChooseFromStackState
CustomTextButton( CustomTextButton(
text: "Select wallet", text: "Select wallet",
onTap: () async { onTap: () async {
final address = wallet.info.cachedReceivingAddress; final address =
(await wallet.getCurrentReceivingAddress())
?.value ??
wallet.info.cachedReceivingAddress;
if (mounted) { if (mounted) {
Navigator.of(context).pop( Navigator.of(context).pop(