From 77167c68dfafe7fd5aae3ffe67d3a9580b0c750f Mon Sep 17 00:00:00 2001 From: Jon Ator Date: Fri, 31 May 2024 16:46:07 -0400 Subject: [PATCH] unify loading states in UI --- packages/web/components/swap-tool/index.tsx | 6 +++--- packages/web/hooks/use-swap.tsx | 19 ++++++++++--------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/packages/web/components/swap-tool/index.tsx b/packages/web/components/swap-tool/index.tsx index f1e7b25653..d784673352 100644 --- a/packages/web/components/swap-tool/index.tsx +++ b/packages/web/components/swap-tool/index.tsx @@ -753,7 +753,7 @@ export const SwapTool: FunctionComponent = observer( isLoaded={ Boolean(swapState.toAsset) && Boolean(swapState.fromAsset) && - !swapState.isSpotPriceQuoteLoading + !isSwapToolLoading } >