diff --git a/lib/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.tsx b/lib/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.tsx index 64b8d07b..7a79481e 100644 --- a/lib/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.tsx +++ b/lib/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.tsx @@ -57,7 +57,9 @@ export function HeaderView({ const [imageLoaded, setImageLoaded] = useState(false) - const avatar = item.image && appState.assetsApi.url + item.image + '?width=160&heigth=160' + const avatar = + item.image_external || + (item.image && appState.assetsApi.url + item.image + '?width=160&heigth=160') const title = item.name const subtitle = item.subname diff --git a/lib/src/types/Item.d.ts b/lib/src/types/Item.d.ts index 12d4b8e2..d211adfe 100644 --- a/lib/src/types/Item.d.ts +++ b/lib/src/types/Item.d.ts @@ -46,6 +46,7 @@ export interface Item { slug?: string user_created?: UserItem image?: string + image_external?: string group_type?: string offers?: TagIds needs?: TagIds