mirror of
https://github.com/clarencechaan/ufc-cal.git
synced 2026-10-19 08:38:30 -07:00
Fix bug where red corner rank appears as blue corner rank
GitHub Self-Updating Repository / report (push) Has been cancelled
GitHub Self-Updating Repository / report (push) Has been cancelled
This commit is contained in:
1 parent
bfcf696882
commit
1c976b44bc
1 file changed
+2
-4
+2
-4
@@ -101,9 +101,9 @@ function convertLiToStr(li: HTMLElement) {
|
||||
|
||||
const ranks = li
|
||||
.querySelectorAll(
|
||||
".c-listing-fight__ranks-row .js-listing-fight__corner-rank span"
|
||||
".js-listing-fight__corner-rank.c-listing-fight__corner-rank"
|
||||
)
|
||||
.map((rank) => rank?.textContent);
|
||||
.map((rank) => rank?.textContent.trim());
|
||||
|
||||
const redRankStr = ranks[0] ? ` (${ranks[0]})` : "";
|
||||
const blueRankStr = ranks[1] ? ` (${ranks[1]})` : "";
|
||||
@@ -234,5 +234,3 @@ async function getAllDetailedEvents() {
|
||||
}
|
||||
|
||||
export { getAllDetailedEvents };
|
||||
|
||||
getDetailsFromEventURL(new URL("https://www.ufc.com/event/ufc-312"));
|
||||
Reference in new issue
Block a user