fix: broken flags due to invalid or non-existing project IDs.

This commit is contained in:
Darshan committed 2025-01-19 12:01:37 +05:30
1 parent d141ef0b6f
commit e879bbd076
1 file changed
+1 -1
+1 -1
View File
@@ -12,7 +12,7 @@
export function getFlag(country: string, width: number, height: number, quality: number) {
if (!isValueOfStringEnum(Flag, country)) return '';
let flag = sdk.forProject.avatars
let flag = sdk.forConsole.avatars
.getFlag(country, width * 2, height * 2, quality)
?.toString();
flag?.includes('&project=')