From cb13e8ddb066ea5685c2242bb55b1fefeb263667 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Wed, 23 Oct 2024 16:07:15 +0530 Subject: [PATCH] Tweak --- web/apps/photos/src/pages/gallery.tsx | 6 +++--- web/packages/new/photos/components/gallery/index.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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...");