Skip to content

Commit

Permalink
Undo link variable thing
Browse files Browse the repository at this point in the history
  • Loading branch information
xbtmatt committed Jan 29, 2025
1 parent d430f9a commit 23c043a
Showing 1 changed file with 8 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,20 @@ export const LaunchButtonOrGoToMarketLink = ({
overflow: true,
};

const link = (
<Link
className="font-pixelar text-lg uppercase text-ec-blue"
href={path.join(ROUTES.market, emojis.join(""))}
>
<Button scale="lg" scrambleProps={scrambleProps}>
{t("Go to emojicoin market")}
</Button>
</Link>
);
return (
<>
{/* Force displaying the "Go to emojicoin market" link if the market is already registered,
regardless of whether or not the user is connected. */}
<ButtonWithConnectWalletFallback forceDisplayChildren={registered}>
{registered ? (
link
<Link
className="font-pixelar text-lg uppercase text-ec-blue"
href={path.join(ROUTES.market, emojis.join(""))}
>
<Button scale="lg" scrambleProps={scrambleProps}>
{t("Go to emojicoin market")}
</Button>
</Link>
) : (
<Button
disabled={invalid || typeof registered === "undefined"}
Expand Down

0 comments on commit 23c043a

Please sign in to comment.