From 771046b6a6ca0b8db88b928e776bc680f159e916 Mon Sep 17 00:00:00 2001 From: martin-mfg <2026226+martin-mfg@users.noreply.github.com> Date: Sun, 9 Nov 2025 12:00:32 +0100 Subject: [PATCH] specify theme only if non-default --- frontend/frontend/src/pages/Home/Home.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/frontend/frontend/src/pages/Home/Home.js b/frontend/frontend/src/pages/Home/Home.js index be9f8530..08bb6e4b 100644 --- a/frontend/frontend/src/pages/Home/Home.js +++ b/frontend/frontend/src/pages/Home/Home.js @@ -148,7 +148,20 @@ const HomeScreen = () => { // for stage three const [theme, setTheme] = useState('default'); - const themeSuffix = `${fullSuffix}&theme=${theme}`; + let themeSuffix = fullSuffix; + + if ( + !( + (theme === 'default' && + [CardTypes.STATS, CardTypes.TOP_LANGS, CardTypes.WAKATIME].includes( + selectedCard, + )) || + (theme === 'default_repocard' && + [CardTypes.PIN, CardTypes.GIST].includes(selectedCard)) + ) + ) { + themeSuffix += `&theme=${theme}`; + } useEffect(() => { async function redirectCode() {