This commit is contained in:
otsmr 2025-06-22 21:11:39 +02:00
parent 434945cb54
commit a18d5ab0fd

View file

@ -50,7 +50,7 @@ class _LocationFilterState extends State<LocationFilter> {
// Check if the item matches the normalized city // Check if the item matches the normalized city
if (item.imageSrc.endsWith('$normalizedCity.png')) { if (item.imageSrc.endsWith('$normalizedCity.png')) {
if (item.imageSrc.startsWith("/api/")) { if (item.imageSrc.startsWith("/api/")) {
_imageUrl = "https://twonly.eu/$item"; _imageUrl = "https://twonly.eu/${item.imageSrc}";
if (mounted) setState(() {}); if (mounted) setState(() {});
} }
return; return;
@ -64,7 +64,7 @@ class _LocationFilterState extends State<LocationFilter> {
if (item.imageSrc.contains('/countries/') && if (item.imageSrc.contains('/countries/') &&
item.imageSrc.contains(normalizedCountry)) { item.imageSrc.contains(normalizedCountry)) {
if (item.imageSrc.startsWith("/api/")) { if (item.imageSrc.startsWith("/api/")) {
_imageUrl = "https://twonly.eu/$item"; _imageUrl = "https://twonly.eu/${item.imageSrc}";
if (mounted) setState(() {}); if (mounted) setState(() {});
} }
break; break;