Skip to content

Commit

Permalink
fix wallet disconnected
Browse files Browse the repository at this point in the history
  • Loading branch information
jonator committed Jun 6, 2024
1 parent 47a4ee7 commit 143b72a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/web/components/pool-detail/share.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -670,8 +670,8 @@ export const SharePool: FunctionComponent<{ pool: Pool }> = observer(
</div>
</div>
<div className="flex flex-col items-end text-right lg:hidden">
{(isLoadingUserSharePool || isRefetchingUserSharePool) &&
Boolean(account) ? (
{Boolean(account) &&
(isLoadingUserSharePool || isRefetchingUserSharePool) ? (
<Spinner />
) : userSharePool ? (
<>
Expand Down Expand Up @@ -736,7 +736,8 @@ export const SharePool: FunctionComponent<{ pool: Pool }> = observer(
` ${t("pool.bondSuperfluidLiquidityCaption")}`}
</span>
</div>
{isLoadingBondDurations || isLoadingUserSharePool ? (
{Boolean(account) &&
(isLoadingBondDurations || isLoadingUserSharePool) ? (
<Spinner />
) : level2Disabled ? (
<h6 className="text-osmoverse-100">
Expand All @@ -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={() => {
Expand Down

0 comments on commit 143b72a

Please sign in to comment.