mirror of
https://github.com/fabrice404/olympics-calendar.git
synced 2026-02-17 14:49:20 +00:00
fix unknown noc
This commit is contained in:
@ -208,5 +208,5 @@ export const flags: { [key: string]: string } = {
|
||||
};
|
||||
|
||||
export const getFlag = (nocKey: string): string => {
|
||||
return flags[nocKey.toUpperCase()] || "🏳️";
|
||||
return flags[nocKey?.toUpperCase()] || "🏳️";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user