fix: swap refreshing provider

This commit is contained in:
julian 2023-05-03 15:47:12 -06:00
parent 3d9a8c3a3c
commit 7c8721f492

View file

@ -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);