diff --git a/src/lib/getClubLogo.ts b/src/lib/getClubLogo.ts index 24feec4..1c1cc3f 100644 --- a/src/lib/getClubLogo.ts +++ b/src/lib/getClubLogo.ts @@ -1,4 +1,7 @@ const getClubLogo = (team: string):string => { + if (!team) { + return 'ligue1_square.png'; + } let t = team.toLowerCase(); // Paris Saint-Germain if (t.includes('paris') || t.includes('psg')) {