Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Hachi-R committed Feb 16, 2025
1 parent 7064da8 commit d1a77dc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/renderer/src/context/settings/settings.context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ export function SettingsContextProvider({
const [appearanceAuthorId, setAppearanceAuthorId] = useState<string | null>(
null
);
const [appearanceAuthorName, setAppearanceAuthorName] = useState<string | null>(
null
);
const [appearanceAuthorName, setAppearanceAuthorName] = useState<
string | null
>(null);
const [currentCategoryIndex, setCurrentCategoryIndex] = useState(0);

const [blockedUsers, setBlockedUsers] = useState<UserBlocks["blocks"]>([]);
Expand All @@ -75,7 +75,11 @@ export function SettingsContextProvider({
}, [appearanceTheme]);

useEffect(() => {
if (defaultAppearanceTheme && defaultAppearanceAuthorId && defaultAppearanceAuthorName) {
if (
defaultAppearanceTheme &&
defaultAppearanceAuthorId &&
defaultAppearanceAuthorName
) {
setAppearanceTheme(defaultAppearanceTheme);
setAppearanceAuthorId(defaultAppearanceAuthorId);
setAppearanceAuthorName(defaultAppearanceAuthorName);
Expand Down

0 comments on commit d1a77dc

Please sign in to comment.