Skip to content

Commit

Permalink
add conditional to account/login button
Browse files Browse the repository at this point in the history
  • Loading branch information
unify-master committed Jan 23, 2025
1 parent 04c723e commit 0eb20b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sections/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const Desktop = ({ navItems, logo, searchbar, loading }: Props) => (
</label>

<div class="flex gap-4 place-self-end">
<a href="/login">
<a href={`${(window.STOREFRONT.USER.getUser().email ? '/account' : '/login')}`}>
<img src="https://data.decoassets.com/lojavidamina/d6ea5db3-5843-44e2-b7ad-d0a1880fc561/user-thin.png" alt="login" width="32" height="32" />
</a>
<Bag />
Expand Down

0 comments on commit 0eb20b5

Please sign in to comment.