diff --git a/src/index.jsx b/src/index.jsx index 7b2d21c..3c35d68 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -28,8 +28,12 @@ class ErrorView extends React.Component { render() { if (this.state.hasError) { + let isDarkMode = true + if (localStorage.getItem("chakra-ui-color-mode") === "light") { + isDarkMode = false + } return ( -