move simplex load from every select tap to initial buy form load

This commit is contained in:
sneurlax 2023-01-13 19:08:27 -06:00
parent bdfb1f0a20
commit 7bfcaffc01

View file

@ -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(