Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Tweak

Manav Rathicb13e8ddb066
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() {
<GalleryEmptyState openUploader={openUploader} />
) : !isInSearchMode &&
!isFirstLoad &&
- barMode == "people" &&
- !activePerson ? (
+ state.view.type == "people" &&
+ !state.view.activePerson ? (
<PeopleEmptyState />
) : (
<PhotoFrame
diff --git a/web/packages/new/photos/components/gallery/index.tsx b/web/packages/new/photos/components/gallery/index.tsx
index b4e89cb8fb..6b4515874a 100644
--- a/web/packages/new/photos/components/gallery/index.tsx
+++ b/web/packages/new/photos/components/gallery/index.tsx
@@ -50,7 +50,7 @@ export const PeopleEmptyState: React.FC = () => {
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...");