From 701da11da9f4415984d3112ba0d5e3bb69b7ae11 Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Tue, 31 Dec 2024 06:25:09 -0700 Subject: [PATCH] Fixed how Play page looks for anonymous users --- src/views/Play/CustomGames.tsx | 8 ++------ src/views/Play/QuickMatch.styl | 31 ++++++++++++++++--------------- src/views/Play/QuickMatch.tsx | 10 ---------- 3 files changed, 18 insertions(+), 31 deletions(-) diff --git a/src/views/Play/CustomGames.tsx b/src/views/Play/CustomGames.tsx index 8abe461bfb..6bc1c09589 100644 --- a/src/views/Play/CustomGames.tsx +++ b/src/views/Play/CustomGames.tsx @@ -76,7 +76,7 @@ export function CustomGames(): JSX.Element { const canvas: HTMLCanvasElement = React.useMemo(() => allocateCanvasOrError(), []); const seekgraph = React.useRef(); - const disable_challenge_buttons = useHaveActiveGameSearch(); + const disable_challenge_buttons = useHaveActiveGameSearch() || user.anonymous; const [seekGraphVisible, setSeekGraphVisible] = usePreference("show-seek-graph"); @@ -431,11 +431,7 @@ export function CustomGames(): JSX.Element { >
-