mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-18 02:07:43 +00:00
fix: swap refreshing provider
This commit is contained in:
parent
3d9a8c3a3c
commit
7c8721f492
1 changed files with 2 additions and 4 deletions
|
@ -71,11 +71,9 @@ final efEstimateProvider = StateProvider<Estimate?>((ref) {
|
||||||
|
|
||||||
final efCanExchangeProvider = StateProvider<bool>((ref) {
|
final efCanExchangeProvider = StateProvider<bool>((ref) {
|
||||||
final Estimate? estimate = ref.watch(efEstimateProvider);
|
final Estimate? estimate = ref.watch(efEstimateProvider);
|
||||||
// final Decimal? amount = ref.watch(efReversedProvider)
|
final refreshing = ref.watch(efRefreshingProvider);
|
||||||
// ? ref.watch(efSendAmountProvider)
|
|
||||||
// : ref.watch(efReceiveAmountProvider);
|
|
||||||
|
|
||||||
return estimate != null;
|
return !refreshing && estimate != null;
|
||||||
});
|
});
|
||||||
|
|
||||||
final efRefreshingProvider = StateProvider<bool>((ref) => false);
|
final efRefreshingProvider = StateProvider<bool>((ref) => false);
|
||||||
|
|
Loading…
Reference in a new issue