diff --git a/src/pages/blog/index.tsx b/src/pages/blog/index.tsx
index 836ad7b..60927ff 100644
--- a/src/pages/blog/index.tsx
+++ b/src/pages/blog/index.tsx
@@ -35,6 +35,7 @@ export const BlogPage = () => {
const isAdmin =
userState.user?.npub &&
userState.user.npub === import.meta.env.VITE_REPORTING_NPUB
+ const isLoggedIn = userState.auth && userState.user?.pubkey !== 'undefined'
const navigation = useNavigation()
const [commentCount, setCommentCount] = useState(0)
@@ -172,23 +173,25 @@ export const BlogPage = () => {
Share
- setShowReportPopUp(Date.now())}
- >
-
- Report
-
+
+ Report
+
+ )}
{
const { mod, isAddedToNSFW, isBlocked, isRepost } =
useLoaderData() as ModPageLoaderResult
const userState = useAppSelector((state) => state.user)
+ const isLoggedIn = userState.auth && userState.user?.pubkey !== 'undefined'
const [showReportPopUp, setShowReportPopUp] = useState()
useBodyScrollDisable(!!showReportPopUp)
@@ -336,25 +337,27 @@ const Game = () => {
Share
- {
- setShowReportPopUp(Date.now())
- }}
- >
-
- Report
-
+
+ Report
+
+ )}
{
const displayName =
profile?.displayName || profile?.name || '[name not set up]'
const [showReportPopUp, setShowReportPopUp] = useState(false)
+ const isLoggedIn = userState.auth && userState.user?.pubkey !== 'undefined'
const isOwnProfile =
userState.auth &&
userState.user?.pubkey &&
@@ -376,23 +377,25 @@ export const ProfilePage = () => {
{!isOwnProfile && (
<>
- setShowReportPopUp(true)}
- >
-
- Report
-
+
+ Report
+
+ )}