Skip to content

Commit

Permalink
Merge pull request #17886 from ahmedhamidawan/fix_history_has_owner_f…
Browse files Browse the repository at this point in the history
…unction

[24.0] Fix hasOwner function for histories in client
  • Loading branch information
mvdbeek authored Apr 3, 2024
2 parents a7f310c + 09f77f4 commit 5548b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 5548b11

Please sign in to comment.