Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

[RN] Avoid adding undefined in the invite

Bettenbuk Zoltan27e1f5a1bcee
diff --git a/react/features/calendar-sync/functions.native.js b/react/features/calendar-sync/functions.native.js
index 4cb413e839..aa2260f300 100644
--- a/react/features/calendar-sync/functions.native.js
+++ b/react/features/calendar-sync/functions.native.js
@@ -26,7 +26,10 @@ export function addLinkToCalendarEntry(
return new Promise((resolve, reject) => {
getShareInfoText(state, link, true).then(shareInfoText => {
RNCalendarEvents.findEventById(id).then(event => {
- const updateText = `${event.description}\n\n${shareInfoText}`;
+ const updateText
+ = event.description
+ ? `${event.description}\n\n${shareInfoText}`
+ : shareInfoText;
const updateObject = {
id: event.id,
...Platform.select({