From 143b72a92a28cf2b7da6b3b78aeea765b47f7c9c Mon Sep 17 00:00:00 2001 From: Jon Ator Date: Thu, 6 Jun 2024 15:40:50 -0500 Subject: [PATCH] fix wallet disconnected --- packages/web/components/pool-detail/share.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/web/components/pool-detail/share.tsx b/packages/web/components/pool-detail/share.tsx index 088eb4914e..fdcebbd159 100644 --- a/packages/web/components/pool-detail/share.tsx +++ b/packages/web/components/pool-detail/share.tsx @@ -670,8 +670,8 @@ export const SharePool: FunctionComponent<{ pool: Pool }> = observer(
- {(isLoadingUserSharePool || isRefetchingUserSharePool) && - Boolean(account) ? ( + {Boolean(account) && + (isLoadingUserSharePool || isRefetchingUserSharePool) ? ( ) : userSharePool ? ( <> @@ -736,7 +736,8 @@ export const SharePool: FunctionComponent<{ pool: Pool }> = observer( ` ${t("pool.bondSuperfluidLiquidityCaption")}`}
- {isLoadingBondDurations || isLoadingUserSharePool ? ( + {Boolean(account) && + (isLoadingBondDurations || isLoadingUserSharePool) ? ( ) : level2Disabled ? (
@@ -753,7 +754,8 @@ export const SharePool: FunctionComponent<{ pool: Pool }> = observer( levelCta !== 2 || isRefetchingBondDurations } isLoading={ - isRefetchingBondDurations || isRefetchingUserSharePool + Boolean(account) && + (isLoadingBondDurations || isLoadingUserSharePool) } loadingText={t("pool.bondShares")} onClick={() => {