Fix missing flag
This commit is contained in:
@@ -69,6 +69,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getFlagEmoji(countryCode) {
|
function getFlagEmoji(countryCode) {
|
||||||
|
if (!countryCode) return ''; // Return an empty string if countryCode is not available
|
||||||
return countryCode
|
return countryCode
|
||||||
.toUpperCase()
|
.toUpperCase()
|
||||||
.replace(/./g, char => String.fromCodePoint(127397 + char.charCodeAt()));
|
.replace(/./g, char => String.fromCodePoint(127397 + char.charCodeAt()));
|
||||||
|
|||||||
Reference in New Issue
Block a user