mirror of
https://github.com/clarencechaan/ufc-cal.git
synced 2026-10-19 00:38:30 -07:00
Fix weightclass not in short form
This commit is contained in:
1 parent
44c2594121
commit
d09cc09071
2 files changed
+3
-2
No files matched your search
+2
-1
@@ -65,7 +65,8 @@ function formatEventForCalendar(event: UFCEvent) {
|
|||||||
}
|
}
|
||||||
description += `\n--------------------\n${event.earlyPrelims.join("\n")}\n`;
|
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
|
// Get current date and time to communicate to the user how up-to-date
|
||||||
// the event details are
|
// the event details are
|
||||||
|
|||||||
+1
-1
@@ -99,7 +99,7 @@ function convertLiToStr(li: HTMLElement) {
|
|||||||
|
|
||||||
const redRankStr = ranks[0] ? ` (${ranks[0]})` : "";
|
const redRankStr = ranks[0] ? ` (${ranks[0]})` : "";
|
||||||
const blueRankStr = ranks[1] ? ` (${ranks[1]})` : "";
|
const blueRankStr = ranks[1] ? ` (${ranks[1]})` : "";
|
||||||
fightStr += `• ${red}${redRankStr} vs. ${blue}${blueRankStr} @${bout}`;
|
fightStr += `• ${red}${redRankStr} vs. ${blue}${blueRankStr} @${weightClass}`;
|
||||||
|
|
||||||
// Deentitize HTML entities
|
// Deentitize HTML entities
|
||||||
fightStr = decode(fightStr);
|
fightStr = decode(fightStr);
|
||||||
|
|||||||
Reference in new issue
Block a user