about summary refs log tree commit diff
path: root/src/components/dialogs/nudges/TenMillion/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/dialogs/nudges/TenMillion/index.tsx')
-rw-r--r--src/components/dialogs/nudges/TenMillion/index.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/dialogs/nudges/TenMillion/index.tsx b/src/components/dialogs/nudges/TenMillion/index.tsx
index f42cd2282..c2c6926f7 100644
--- a/src/components/dialogs/nudges/TenMillion/index.tsx
+++ b/src/components/dialogs/nudges/TenMillion/index.tsx
@@ -87,6 +87,11 @@ function Frame({children}: {children: React.ReactNode}) {
 }
 
 export function TenMillion() {
+  const {hasSession} = useSession()
+  return hasSession ? <TenMillionInner /> : null
+}
+
+export function TenMillionInner() {
   const t = useTheme()
   const lightTheme = useTheme('light')
   const {_, i18n} = useLingui()
@@ -96,7 +101,7 @@ export function TenMillion() {
   const {currentAccount} = useSession()
   const {isLoading: isProfileLoading, data: profile} = useProfileQuery({
     did: currentAccount!.did,
-  }) // TODO PWI
+  })
   const moderationOpts = useModerationOpts()
   const moderation = React.useMemo(() => {
     return profile && moderationOpts