mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-22 10:34:32 +00:00
exchange flow recipient address from stack selection bugfix
This commit is contained in:
parent
d3cd8d956a
commit
63b76df9ca
2 changed files with 8 additions and 3 deletions
|
@ -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 =
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue