Fix weightclass not in short form

This commit is contained in:
Clarence Chan committed 2025-01-28 17:58:57 -05:00
1 parent 44c2594121
commit d09cc09071
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -65,7 +65,8 @@ function formatEventForCalendar(event: UFCEvent) {
}
description += `\n--------------------\n${event.earlyPrelims.join("\n")}\n`;
}
description += `\n${event.url}`;
if (description.length) description += "\n";
description += `${event.url}`;
// Get current date and time to communicate to the user how up-to-date
// the event details are
+1 -1
View File
@@ -99,7 +99,7 @@ function convertLiToStr(li: HTMLElement) {
const redRankStr = ranks[0] ? ` (${ranks[0]})` : "";
const blueRankStr = ranks[1] ? ` (${ranks[1]})` : "";
fightStr += `• ${red}${redRankStr} vs. ${blue}${blueRankStr} @${bout}`;
fightStr += `• ${red}${redRankStr} vs. ${blue}${blueRankStr} @${weightClass}`;
// Deentitize HTML entities
fightStr = decode(fightStr);