mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-22 18:44:31 +00:00
update quote validity check
This commit is contained in:
parent
45bfab1d5e
commit
e688ec2176
1 changed files with 4 additions and 5 deletions
|
@ -394,15 +394,13 @@ class _BuyFormState extends ConsumerState<BuyForm> {
|
|||
if (mounted) {
|
||||
Navigator.of(context, rootNavigator: isDesktop).pop();
|
||||
}
|
||||
quote = ref.read(simplexProvider).quote;
|
||||
|
||||
if (quote.id == 'someID') {
|
||||
if (quote.id != 'id' && quote.id != 'someID') {
|
||||
// TODO detect default quote better
|
||||
await _showFloatingBuyQuotePreviewSheet(
|
||||
quote: ref.read(simplexProvider).quote,
|
||||
onSelected: (quote) {
|
||||
// setState(() {
|
||||
// selectedFiat = fiat;
|
||||
// });
|
||||
// TODO launch URL
|
||||
},
|
||||
);
|
||||
|
@ -453,7 +451,8 @@ class _BuyFormState extends ConsumerState<BuyForm> {
|
|||
} else {
|
||||
return StackDialog(
|
||||
title: "Simplex API unresponsive",
|
||||
message: "Simplex API unresponsive, please try again later",
|
||||
message:
|
||||
"Unexpected response from Simplex API, please try again later",
|
||||
rightButton: TextButton(
|
||||
style: Theme.of(context)
|
||||
.extension<StackColors>()!
|
||||
|
|
Loading…
Reference in a new issue