Revert the country selection to something that functions.

This commit is contained in:
Herbert Wolverson 2024-07-29 10:38:11 -05:00
parent 42d6efc840
commit 32d746894a

View File

@ -192,7 +192,7 @@ function renderAsn(asn, data) {
// Build the heading
heading.innerText = "ASN #" + asn.toFixed(0) + " (" + targetAsn.name + ")";
} else if (renderMode === "country") {
let targetCountry = countryList.find((row) => row.name === asn);
let targetCountry = countryList.find((row) => row.flag === asn);
if (targetCountry === undefined || targetCountry === null) {
console.error("Could not find country: " + asn);
return;