This commit is contained in:
Manav Rathi
2024-10-23 16:07:15 +05:30
parent 62fb7ba459
commit cb13e8ddb0
2 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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...");