fix: Add to calendar feature not working properly (#20515)

This commit is contained in:
Anik Dhabal Babu
2025-04-03 02:41:36 +00:00
committed by GitHub
parent 417a612aa3
commit 9600ab6085
@@ -81,7 +81,8 @@ export const setDestinationCalendarHandler = async ({ ctx, input }: SetDestinati
allCals.find(
(cal) =>
cal.primary &&
(cal.credentialId === credentialId || cal.delegationCredentialId === delegationCredentialId)
(cal.credentialId === credentialId ||
(!!cal.delegationCredentialId && cal.delegationCredentialId === delegationCredentialId))
)?.email ?? null;
if (eventTypeId) {