diff --git a/src/shared/hooks/user-info.ts b/src/shared/hooks/user-info.ts index 978fa69..736055a 100644 --- a/src/shared/hooks/user-info.ts +++ b/src/shared/hooks/user-info.ts @@ -11,7 +11,7 @@ type State = { first_name: string; last_name: string; active: boolean; - id: number; + id?: number; } | null; }; @@ -27,7 +27,7 @@ type Actions = { first_name: string; last_name: string; active: boolean; - id: number; + id?: number; } | null, ) => void; }; @@ -39,7 +39,7 @@ export const userInfoStore = create((set) => ({ first_name: string; last_name: string; active: boolean; - id: number; + id?: number; } | null, ) => set(() => ({ loginUser: login })), user: {