mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 20:09:23 +00:00
move simplex load from every select tap to initial buy form load
This commit is contained in:
parent
bdfb1f0a20
commit
7bfcaffc01
1 changed files with 3 additions and 1 deletions
|
@ -264,6 +264,9 @@ class _BuyFormState extends ConsumerState<BuyForm> {
|
|||
buyWithFiat = ref.watch(
|
||||
prefsChangeNotifierProvider.select((value) => value.buyWithFiat));
|
||||
|
||||
BuyDataLoadingService().loadAll(
|
||||
ref); // Why does this need to be called here? Shouldn't it already be called by main.dart?
|
||||
|
||||
return Container(
|
||||
width:
|
||||
458, // TODO test that this displays well on mobile or else put in a ternary or something else appropriate to switch here
|
||||
|
@ -286,7 +289,6 @@ class _BuyFormState extends ConsumerState<BuyForm> {
|
|||
onExit: (_) => setState(() => _hovering1 = false),
|
||||
child: GestureDetector(
|
||||
onTap: () {
|
||||
BuyDataLoadingService().loadAll(ref);
|
||||
selectCrypto();
|
||||
},
|
||||
child: RoundedContainer(
|
||||
|
|
Loading…
Reference in a new issue