@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.cjs CHANGED
@@ -2863,7 +2863,7 @@ var ThemeProviderWrapper = ({ children }) => {
2863
2863
  if (typeof window !== "undefined") {
2864
2864
  const storedTheme = localStorage.getItem("theme");
2865
2865
  if (storedTheme) {
2866
- if (theme === "light") switchToLight();
2866
+ if (storedTheme === "light") switchToLight();
2867
2867
  else switchToDark();
2868
2868
  } else {
2869
2869
  if (window.matchMedia("(prefers-color-scheme: dark)").matches)