From b575ee82edd52a803eef983f74e9d4af479f8c26 Mon Sep 17 00:00:00 2001 From: sneurlax Date: Mon, 16 Jan 2023 11:05:50 -0600 Subject: [PATCH] set BTC and USD as defaults --- lib/pages/buy_view/buy_form.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/pages/buy_view/buy_form.dart b/lib/pages/buy_view/buy_form.dart index 30f93a035..0b225395c 100644 --- a/lib/pages/buy_view/buy_form.dart +++ b/lib/pages/buy_view/buy_form.dart @@ -488,6 +488,11 @@ class _BuyFormState extends ConsumerState { receivingAddress: '', ); // TODO enum this or something + // TODO set defaults better; should probably explicitly enumerate the coins & fiats used and pull the specific ones we need rather than generating them as defaults here + selectedFiat = Fiat.fromJson({'ticker': 'USD', 'name': 'USD', 'image': ''}); + selectedCrypto = + Crypto.fromJson({'ticker': 'BTC', 'name': 'Bitcoin', 'image': ''}); + // TODO set initial crypto to open wallet if a wallet is open super.initState();