We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9f0dca commit 500d4ffCopy full SHA for 500d4ff
features/flag-on-profile/flag.js
@@ -6,6 +6,7 @@
6
if (locationElement) {
7
const locationText = locationElement.textContent.trim();
8
const countryFlag = getCountryFlag(locationText);
9
+ if (!countryFlag) return;
10
const flagElement = document.createElement('span');
11
flagElement.textContent = countryFlag;
12
flagElement.style.marginRight = '4px';
@@ -228,4 +229,4 @@
228
229
230
return flags[locationText] || '';
231
}
-})();
232
+})();
0 commit comments