Fix share toggle to include fonts/background in active profile theme
ThemeSelector was constructing a new ThemeConfig with only colors when sharing, discarding the fonts and background from the customTheme. Now passes the full customTheme (which already is a ThemeConfig).
This commit is contained in:
@@ -118,7 +118,7 @@ export function ThemeSelector() {
|
||||
try {
|
||||
if (checked) {
|
||||
const colors = getEffectiveColors(theme, customTheme);
|
||||
await setActiveTheme({ themeConfig: { colors } });
|
||||
await setActiveTheme({ themeConfig: customTheme ?? { colors } });
|
||||
toast({ title: 'Theme shared', description: 'Your theme is now visible on your profile.' });
|
||||
} else {
|
||||
await clearActiveTheme();
|
||||
|
||||
Reference in New Issue
Block a user