Skip to content

Commit 16caaa2

Browse files
authored
fix(app): fall back to icon.url in sidebar avatar (#18747)
1 parent 91468fe commit 16caaa2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/app/src/pages/layout/sidebar-items.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ export const ProjectIcon = (props: { project: LocalProject; class?: string; noti
4343
<Avatar
4444
fallback={name()}
4545
src={
46-
props.project.id === OPENCODE_PROJECT_ID ? "https://opencode.ai/favicon.svg" : props.project.icon?.override
46+
props.project.id === OPENCODE_PROJECT_ID
47+
? "https://opencode.ai/favicon.svg"
48+
: props.project.icon?.override || props.project.icon?.url
4749
}
4850
{...getAvatarColors(props.project.icon?.color)}
4951
class="size-full rounded"

0 commit comments

Comments
 (0)