diff options
Diffstat (limited to 'src/store/initialStates.ts')
-rw-r--r-- | src/store/initialStates.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/store/initialStates.ts b/src/store/initialStates.ts index b43e4a1d..47ab8f39 100644 --- a/src/store/initialStates.ts +++ b/src/store/initialStates.ts @@ -1,17 +1,16 @@ import {CommentThreadType} from './../types/types'; import { - ExploreSectionType, MomentType, NotificationType, ProfilePreviewType, - ProfileType, + ProfileInfoType, ScreenType, SocialAccountType, UserType, UserXType, } from '../types'; -export const NO_PROFILE: ProfileType = { +export const NO_PROFILE: ProfileInfoType = { biography: '', website: '', name: '', @@ -26,6 +25,7 @@ export const NO_PROFILE: ProfileType = { tiktok: '', friendship_status: 'no_record', friendship_requester_id: '', + is_private: true, }; export const EMPTY_MOMENTS_LIST = <MomentType[]>[]; @@ -41,9 +41,9 @@ export const EMPTY_PROFILE_PREVIEW_LIST = <ProfilePreviewType[]>[]; export const NO_USER_DATA = { user: <UserType>NO_USER, - profile: <ProfileType>NO_PROFILE, - avatar: <string | null>'', - cover: <string | null>'', + profile: <ProfileInfoType>NO_PROFILE, + avatar: <string | undefined>undefined, + cover: <string | undefined>undefined, isOnboardedUser: false, newVersionAvailable: false, newNotificationReceived: false, @@ -98,8 +98,8 @@ export const EMPTY_USER_X = <UserXType>{ socialAccounts: NO_SOCIAL_ACCOUNTS, user: NO_USER, profile: NO_PROFILE, - avatar: '', - cover: '', + avatar: undefined, + cover: undefined, }; /** |