diff --git a/client/src/api/index.ts b/client/src/api/index.ts index a32e076b84ff..0d17530014d2 100644 --- a/client/src/api/index.ts +++ b/client/src/api/index.ts @@ -228,5 +228,5 @@ export function userOwnsHistory(user: User | AnonymousUser | null, history: AnyH } function hasOwner(history: AnyHistory): history is HistorySummaryExtended { - return "user_id" in history; + return "user_id" in history && history.user_id !== null; }