Skip to content

Commit

Permalink
Fixed split call on undefined issue (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
ingerbird authored Sep 4, 2024
1 parent cb148f7 commit bf3a3c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/transistor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const parseEpisodeTitle = (
guest: { name?: string; title?: string };
} => {
const [title, guest] = str.split(' - ');
const [guestName, guestTitle] = guest.split(', ');
const [guestName = '', guestTitle = ''] = guest?.split(', ') || [];

return {
title,
Expand Down

0 comments on commit bf3a3c9

Please sign in to comment.