From 86c89152f516568d0821ced427fb7679fea3f995 Mon Sep 17 00:00:00 2001 From: sneurlax Date: Wed, 25 Jan 2023 13:44:45 -0600 Subject: [PATCH] add updateOrder stub can't access ref without more work, moving on --- .../buy_view/sub_widgets/buy_warning_popup.dart | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/pages/buy_view/sub_widgets/buy_warning_popup.dart b/lib/pages/buy_view/sub_widgets/buy_warning_popup.dart index 334c52b3c..082a19306 100644 --- a/lib/pages/buy_view/sub_widgets/buy_warning_popup.dart +++ b/lib/pages/buy_view/sub_widgets/buy_warning_popup.dart @@ -29,7 +29,18 @@ class BuyWarningPopup extends StatelessWidget { SimplexOrder? order; Future> newOrder(SimplexQuote quote) async { - return SimplexAPI.instance.newOrder(quote); + final response = await SimplexAPI.instance.newOrder(quote); + + // if (response.value != null) { + // ref.read(simplexProvider).updateOrder(response.value!); + // } else { + // Logging.instance.log( + // "_loadQuote: $response", + // level: LogLevel.Warning, + // ); + // } + + return response; } Future> redirect(SimplexOrder order) async {