Skip to content

Commit

Permalink
fix: use empty string when no avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed Jan 8, 2024
1 parent 30d8fa8 commit 0d904d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down

0 comments on commit 0d904d0

Please sign in to comment.