do not close menu on favorite click

This commit is contained in:
saml33 2023-06-21 09:40:51 +10:00
parent 9976698c67
commit 53a5b4e619
1 changed files with 6 additions and 6 deletions

View File

@ -133,9 +133,6 @@ const MarketSelectDropdown = () => {
<div
className={MARKET_LINK_WRAPPER_CLASSES}
key={m.publicKey.toString()}
onClick={() => {
if (!isComingSoon) close()
}}
>
{!isComingSoon ? (
<>
@ -145,6 +142,9 @@ const MarketSelectDropdown = () => {
pathname: '/trade',
query: { name: m.name },
}}
onClick={() => {
close()
}}
shallow={true}
>
<div className="flex items-center">
@ -239,9 +239,6 @@ const MarketSelectDropdown = () => {
<div
className={MARKET_LINK_WRAPPER_CLASSES}
key={m.publicKey.toString()}
onClick={() => {
close()
}}
>
<Link
className={MARKET_LINK_CLASSES}
@ -249,6 +246,9 @@ const MarketSelectDropdown = () => {
pathname: '/trade',
query: { name: m.name },
}}
onClick={() => {
close()
}}
shallow={true}
>
<div className="flex items-center">