fix type errors

This commit is contained in:
Hailey
2024-06-16 22:48:20 -07:00
parent 7851d134d7
commit d4631b404a
3 changed files with 13 additions and 7 deletions
+2 -1
View File
@@ -44,7 +44,7 @@ export function HomeScreen(props: Props) {
const {setShowLoggedOut, requestSwitchToAccount} = useLoggedOutViewControls()
React.useEffect(() => {
if (!currentStarterPack?.initialFeed) {
if (currentStarterPack && !currentStarterPack?.initialFeed) {
setShowLoggedOut(true)
requestSwitchToAccount({requestedAccount: 'starterpack'})
}
@@ -52,6 +52,7 @@ export function HomeScreen(props: Props) {
setShowLoggedOut,
requestSwitchToAccount,
currentStarterPack?.initialFeed,
currentStarterPack,
])
if (preferences && pinnedFeedInfos && !isPinnedFeedsLoading) {