diff --git a/src/components/creators/CreatorDashboardSidebar.tsx b/src/components/creators/CreatorDashboardSidebar.tsx index 5e553010a..6817e21b9 100644 --- a/src/components/creators/CreatorDashboardSidebar.tsx +++ b/src/components/creators/CreatorDashboardSidebar.tsx @@ -75,17 +75,19 @@ function SpacePageSidebar({ space }: Extract { + if (!isCreatorSpace) { + if (!totalStake?.hasStaked) return + return null + } + + if (stakeData?.hasStaked) return + else return + } + return ( <> - {(() => { - if (!isCreatorSpace) { - if (!totalStake?.hasStaked) return - return null - } - - if (stakeData?.hasStaked) return - else return - })()} + {renderTopCard()} {!loadingTotalStake && totalStake?.hasStaked && } ) diff --git a/src/components/main/PageWrapper.tsx b/src/components/main/PageWrapper.tsx index 826f83a66..5c0ab5a58 100644 --- a/src/components/main/PageWrapper.tsx +++ b/src/components/main/PageWrapper.tsx @@ -125,7 +125,6 @@ export const PageContent: FC = ({ return ( <> - {isMobile ? (
@@ -182,18 +181,3 @@ export const PageContent: FC = ({ ) } - -function AppLaunchedEventSender() { - // const sendEvent = useSendEvent() - // const hasSentEvent = useRef(false) - - // const myAddress = useMyAddress() ?? '' - // const { data, loading: loadingTotalStake } = useFetchTotalStake() - - // useEffect(() => { - // if (hasSentEvent.current) return - - // }, [sendEvent]) - - return null -}