fix: DAGI Router agents logic, MicroDAO logo URL handling
This commit is contained in:
@@ -190,7 +190,11 @@ export default function MicrodaoDetailPage() {
|
||||
<div className="w-24 h-24 rounded-2xl bg-slate-800 border border-white/10 flex items-center justify-center overflow-hidden shadow-xl">
|
||||
{microdao.logo_url ? (
|
||||
// eslint-disable-next-line @next/next/no-img-element
|
||||
<img src={microdao.logo_url} alt={microdao.name} className="w-full h-full object-cover" />
|
||||
<img
|
||||
src={microdao.logo_url.startsWith('/api/static') ? microdao.logo_url : microdao.logo_url.startsWith('/static') ? `/api${microdao.logo_url}` : microdao.logo_url}
|
||||
alt={microdao.name}
|
||||
className="w-full h-full object-cover"
|
||||
/>
|
||||
) : (
|
||||
<Building2 className="w-10 h-10 text-slate-600" />
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user