Fixed some stuff

This commit is contained in:
sageTheDM 2024-10-03 11:37:53 +02:00
parent ad2b4c81c6
commit 0aa7116fd3

View file

@ -159,18 +159,14 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
fontFamily,
fontSize,
selectedTheme,
faqSettings: {
faqBackgroundColor,
faqHeadingColor,
faqItemBackgroundColor,
faqItemHeadingColor,
faqItemTextColor,
faqItemHoverBackgroundColor,
},
popupSettings: {
popupBackgroundColor,
overlayTextColor,
},
primaryColor,
secondaryColor,
accentColor,
@ -317,8 +313,6 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
const flattenedSettings = {
...settings.userPreferences,
...settings.theme,
...settings.theme.faqSettings,
...settings.theme.popupSettings,
...settings.apiKeys,
...settings.generalSettings,
};
@ -329,8 +323,6 @@ const Settings: React.FC<{ closeSettings: () => void; accountName: string }> = (
}, [
...Object.values(settings.userPreferences),
...Object.values(settings.theme),
...Object.values(settings.theme.faqSettings),
...Object.values(settings.theme.popupSettings),
...Object.values(settings.apiKeys),
...Object.values(settings.generalSettings),
]);