Skip to content

Commit

Permalink
Prevent "Buy" button's navigation to portfolio
Browse files Browse the repository at this point in the history
  • Loading branch information
jahooma committed Jan 5, 2023
1 parent e3da51c commit 2b88eb8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/components/nav/profile-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ export function ProfileSummary(props: { user: User }) {
<span className="mr-2">{formatMoney(Math.floor(user.balance))}</span>
<button
className="rounded-md py-0.5 px-2 text-xs ring-2 ring-inset ring-current hover:bg-gray-300"
onClick={() => setBuyModalOpen(true)}
onClick={(e) => {
e.preventDefault()
setBuyModalOpen(true)
}}
>
Buy
</button>
Expand Down

0 comments on commit 2b88eb8

Please sign in to comment.