Skip to content

Commit

Permalink
fallback to sprig dino icon iff navbarIcon is undefineds
Browse files Browse the repository at this point in the history
  • Loading branch information
JosiasAurel committed Apr 1, 2024
1 parent 2b2e1a2 commit 9104340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/navbar-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export default function EditorNavbar(props: EditorNavbarProps) {
<li class={`${styles.logo} ${showNavPopup.value ? styles.active : ''}`}>
<button onClick={() => showNavPopup.value = !showNavPopup.value}>
{/* <SprigIcon /> */}
<img class={styles.dino} src={themes[theme.value].navbarIcon} height={38} />
<img class={styles.dino} src={themes[theme.value]?.navbarIcon ?? "./SPRIGDINO.png"} height={38} />
<div class={styles.caret}><IoChevronDown /></div>
</button>
</li>
Expand Down

0 comments on commit 9104340

Please sign in to comment.