Skip to content

Commit

Permalink
fix: dont merge falsy theme settings
Browse files Browse the repository at this point in the history
fix: dont merge falsy theme settings
  • Loading branch information
greenhat616 committed Aug 30, 2024
1 parent eb68a02 commit e14f524
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions frontend/nyanpasu/src/components/layout/use-custom-theme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ export const useCustomTheme = () => {
mergeWith(
{},
defaultTheme,
nyanpasuConfig?.theme_setting,
nyanpasuConfig?.theme_setting || {},
(objValue, srcValue) => {
return srcValue === undefined || srcValue === ""
? objValue
: srcValue;
return !srcValue ? objValue : srcValue;
},
),
);
Expand Down

0 comments on commit e14f524

Please sign in to comment.