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;
model.recipientAddress = (await wallet
.getCurrentReceivingAddress())!
.value;
.getCurrentReceivingAddress())
?.value ??
wallet
.info.cachedReceivingAddress;
setState(() {
enableNext =

View file

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