add updateOrder stub

can't access ref without more work, moving on
This commit is contained in:
sneurlax 2023-01-25 13:44:45 -06:00
parent 64da385d29
commit 86c89152f5

View file

@ -29,7 +29,18 @@ class BuyWarningPopup extends StatelessWidget {
SimplexOrder? order;
Future<BuyResponse<SimplexOrder>> 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<BuyResponse<bool>> redirect(SimplexOrder order) async {