update: safe-fallback.

This commit is contained in:
Darshan committed 2025-02-16 14:40:34 +05:30
1 parent 8895e0b7db
commit cacb2d25f8
1 file changed
+2
@@ -6,6 +6,8 @@ import { sdk } from '$lib/stores/sdk';
export const regions = writable<RegionList | undefined>(undefined);
export const regionFlagUrls = derived(regions, ($regions) => {
if (!$regions?.regions?.length) return [];
return $regions?.regions?.map((region) => {
return `${sdk.forConsole.client.config.endpoint}/avatars/flags/${region.flag}?width=80&height=60&quality=100&mode=admin`;
});