From 79be0320c55d2a616d780ffd661851cdbfa8dff2 Mon Sep 17 00:00:00 2001 From: Jose Felix Date: Tue, 6 Aug 2024 18:17:44 -0400 Subject: [PATCH] improvement: chain loading --- packages/web/components/bridge/amount-screen.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/web/components/bridge/amount-screen.tsx b/packages/web/components/bridge/amount-screen.tsx index 5829ef8051..60da7b3b89 100644 --- a/packages/web/components/bridge/amount-screen.tsx +++ b/packages/web/components/bridge/amount-screen.tsx @@ -712,7 +712,7 @@ export const AmountScreen = observer( return (
- {isLoading ? ( + {!canonicalAsset ? ( ) : ( <> @@ -728,10 +728,10 @@ export const AmountScreen = observer( token image{" "} - {canonicalAsset?.coinDenom} + {canonicalAsset.coinDenom} )} @@ -755,7 +755,7 @@ export const AmountScreen = observer( chainLogo={fromChain?.logoUri} chains={supportedChains} toChain={toChain} - isLoading={isLoading} + isLoading={!fromChain} onSelectChain={(nextChain) => { setFromChain(nextChain); resetAssets(); @@ -799,7 +799,7 @@ export const AmountScreen = observer( chainLogo={toChain?.logoUri} chains={supportedChains} toChain={toChain!} - isLoading={isLoading} + isLoading={!toChain} onSelectChain={(nextChain) => { setToChain(nextChain); resetAssets();