From 0d904d0a92b24150325900e083c675a65b75328b Mon Sep 17 00:00:00 2001 From: sinedied Date: Mon, 8 Jan 2024 21:26:41 +0100 Subject: [PATCH] fix: use empty string when no avatar --- index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 48832fd..2c27344 100644 --- a/index.ts +++ b/index.ts @@ -51,7 +51,8 @@ function exportOFData(sessions: SCSession[], avatars: SCAvatar[]) { data.speakers[speaker.id] = { id: speaker.id, name: speaker.name, - ...(avatarByUsername[speaker.username] ? { photoUrl: avatarByUsername[speaker.username] } : {}) + photoUrl: avatarByUsername[speaker.username] ?? "" + // ...(avatarByUsername[speaker.username] ? { photoUrl: avatarByUsername[speaker.username] } : {}) } return speaker.id; });