diff --git a/libs/cozy/sync.ts b/libs/cozy/sync.ts index 654f893c2895..dc919dec03ff 100644 --- a/libs/cozy/sync.ts +++ b/libs/cozy/sync.ts @@ -25,7 +25,7 @@ export const shouldDisplayContact = async (client: CozyClient, contact: IOCozyCo const me = await fetchMyself(client); const contactRelatedToMe = // @ts-expect-error related added manually with an hydration - me?.[0]?.relationships?.related?.data.find( + me[0].relationships?.related?.data?.find( // @ts-expect-error related added manually with an hydration (relatedContact) => relatedContact._id === contact._id, );