mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +00:00
set wallet coin in exchange view
This commit is contained in:
parent
cbbbbc0796
commit
a5a2dcef64
1 changed files with 10 additions and 0 deletions
|
@ -618,6 +618,16 @@ class _ExchangeFormState extends ConsumerState<ExchangeForm> {
|
|||
if (walletInitiated) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
|
||||
ref.read(exchangeFormStateProvider).reset(shouldNotifyListeners: true);
|
||||
ExchangeDataLoadingService.instance
|
||||
.getAggregateCurrency(
|
||||
coin!.ticker,
|
||||
ExchangeRateType.estimated,
|
||||
)
|
||||
.then((value) {
|
||||
if (value != null) {
|
||||
ref.read(exchangeFormStateProvider).updateSendCurrency(value, true);
|
||||
}
|
||||
});
|
||||
});
|
||||
} else {
|
||||
_sendController.text =
|
||||
|
|
Loading…
Reference in a new issue