specify theme only if non-default

This commit is contained in:
martin-mfg
2025-11-09 12:00:32 +01:00
parent 0f816c0508
commit 771046b6a6
+14 -1
View File
@@ -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() {