diff --git a/client/src/components/Design/theme/HDesignProvider.tsx b/client/src/components/Design/theme/HDesignProvider.tsx index c5367afa..77139a1d 100644 --- a/client/src/components/Design/theme/HDesignProvider.tsx +++ b/client/src/components/Design/theme/HDesignProvider.tsx @@ -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; };