Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jinhokim98 committed Dec 29, 2024
2 parents c1d6ef3 + 99b70dc commit 38f6d94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/components/Design/theme/HDesignProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const HDesignProvider: React.FC<{children: ReactNode}> = ({children}) =>
export const useTheme = (): ThemeContextProps => {
const context = useContext(ThemeContext);
if (!context) {
throw new Error('useTheme must be used within a HDesignProvider');
// throw new Error('useTheme must be used within a HDesignProvider');
}
return context;
return context as ThemeContextProps;
};

0 comments on commit 38f6d94

Please sign in to comment.