Skip to content

Commit

Permalink
removed ts directive
Browse files Browse the repository at this point in the history
  • Loading branch information
recondesigns committed Mar 6, 2024
1 parent 0fa81ac commit facf5f5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/Nav/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ export const Nav = () => {
key={navItem.name}
{...navItem}
icon={
// @ts-expect-error
navItem.icon === 'UserLogo' ? <UserLogo className={styles.navIcon} /> : null
'icon' in navItem && navItem.icon === 'UserLogo' ? (
<UserLogo className={styles.navIcon} />
) : null
}
/>
))}
Expand Down

0 comments on commit facf5f5

Please sign in to comment.