tangled
alpha
login
or
join now
isuggest.selfce.st
/
catsky-social
18
fork
atom
tangled mirror of catsky-🐱 Soothing soft social-app fork with all the niche toggles! (Unofficial); for issues and PRs please put them on github:NekoDrone/catsky-social
18
fork
atom
overview
issues
pulls
pipelines
use hasSession
Chenyu Huang
4 months ago
ad184391
34f2cc23
+2
-3
1 changed file
expand all
collapse all
unified
split
src
screens
Hashtag.tsx
+2
-3
src/screens/Hashtag.tsx
···
168
168
const initialNumToRender = useInitialNumToRender()
169
169
const [isPTR, setIsPTR] = React.useState(false)
170
170
const t = useTheme()
171
171
-
const {currentAccount} = useSession()
172
172
-
const isLoggedin = Boolean(currentAccount?.did)
171
171
+
const {hasSession} = useSession()
173
172
174
173
const queryParam = React.useMemo(() => {
175
174
if (!author) return fullTag
···
216
215
requestSwitchToAccount({requestedAccount: 'new'})
217
216
}
218
217
219
219
-
if (!isLoggedin) {
218
218
+
if (!hasSession) {
220
219
return (
221
220
<SearchError
222
221
title={_(msg`Search is currently unavailable when logged out`)}>