Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Benmuiruri committed Jun 7, 2024
1 parent affe634 commit d2abe9b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions webapp/src/ts/modules/contacts/contacts.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,13 @@ export class ContactsComponent implements OnInit, AfterViewInit, OnDestroy {
return validPlaces.length ? validPlaces : undefined;
});
})
.then((summary) => {
if (summary) {
summary.home = true;
.then((homeplaces) => {
if (homeplaces) {
homeplaces.forEach(homeplace => {
homeplace.home = true;
});
}
return summary;
return homeplaces;
});
}

Expand Down

0 comments on commit d2abe9b

Please sign in to comment.