mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +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 Estimate? estimate = ref.watch(efEstimateProvider);
|
||||
// final Decimal? amount = ref.watch(efReversedProvider)
|
||||
// ? ref.watch(efSendAmountProvider)
|
||||
// : ref.watch(efReceiveAmountProvider);
|
||||
final refreshing = ref.watch(efRefreshingProvider);
|
||||
|
||||
return estimate != null;
|
||||
return !refreshing && estimate != null;
|
||||
});
|
||||
|
||||
final efRefreshingProvider = StateProvider<bool>((ref) => false);
|
||||
|
|
Loading…
Reference in a new issue