fix type error

This commit is contained in:
Hailey
2024-06-13 18:19:12 -07:00
parent 3650a329aa
commit 5b8bdab0e1
3 changed files with 6 additions and 10 deletions
+3 -3
View File
@@ -41,14 +41,14 @@ export function HomeScreen(props: Props) {
const {data: pinnedFeedInfos, isLoading: isPinnedFeedsLoading} =
usePinnedFeedsInfos()
const usedStarterPack = useUsedStarterPack()
const setUsedStarterPack = useSetUsedStarterPack()
const {setShowLoggedOut} = useLoggedOutViewControls()
const {setShowLoggedOut, requestSwitchToAccount} = useLoggedOutViewControls()
React.useEffect(() => {
if (usedStarterPack && !usedStarterPack.initialFeed) {
setShowLoggedOut(true)
requestSwitchToAccount('starterpack')
}
}, [usedStarterPack, setUsedStarterPack, setShowLoggedOut])
}, [usedStarterPack, setShowLoggedOut, requestSwitchToAccount])
if (preferences && pinnedFeedInfos && !isPinnedFeedsLoading) {
return (