diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index cf4e171e98..48081a92c1 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -873,7 +873,7 @@ export default function Gallery() {
}
// `peopleState` will be undefined only when ML is disabled, otherwise it'll
- // be contain empty arrays (even if people are loading).
+ // be present, with empty arrays, even if people data is still syncing.
const showPeopleSectionButton = peopleState !== undefined;
return (
@@ -1058,8 +1058,8 @@ export default function Gallery() {
) : !isInSearchMode &&
!isFirstLoad &&
- barMode == "people" &&
- !activePerson ? (
+ state.view.type == "people" &&
+ !state.view.activePerson ? (
) : (
{
const message =
mlStatus?.phase == "done"
? pt(
- "People will be shown here after there are sufficient photos of a person",
+ "People will be shown here when there are sufficient photos of a person",
)
: pt("Syncing...");