We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc0e3c6 commit f6b4f54Copy full SHA for f6b4f54
1 file changed
packages/app/src/pages/layout/sidebar-items.tsx
@@ -20,9 +20,10 @@ import { childSessionOnPath, hasProjectPermissions } from "./helpers"
20
const OPENCODE_PROJECT_ID = "4b0ea68d7af9a6031a7ffda7ad66e0cb83315750"
21
22
export function getProjectAvatarSource(id?: string, icon?: { color?: string; url?: string; override?: string }) {
23
- return id === OPENCODE_PROJECT_ID
24
- ? "https://opencode.ai/favicon.svg"
25
- : (icon?.override ?? (icon?.color ? undefined : icon?.url))
+ if (id === OPENCODE_PROJECT_ID) return "https://opencode.ai/favicon.svg"
+ if (icon?.override) return icon?.override
+ if (icon?.color) return undefined
26
+ return icon?.url
27
}
28
29
export const ProjectIcon = (props: { project: LocalProject; class?: string; notify?: boolean }): JSX.Element => {
0 commit comments