@julseb-lib/react 0.1.36 → 0.1.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2685,7 +2685,7 @@ var ThemeProviderWrapper = ({ children }) => {
2685
2685
  if (typeof window !== "undefined") {
2686
2686
  const storedTheme = localStorage.getItem("theme");
2687
2687
  if (storedTheme) {
2688
- if (theme === "light") switchToLight();
2688
+ if (storedTheme === "light") switchToLight();
2689
2689
  else switchToDark();
2690
2690
  } else {
2691
2691
  if (window.matchMedia("(prefers-color-scheme: dark)").matches)