chore: Update ThemePage component to initialize readme state with an empty string
This commit is contained in:
@@ -6,7 +6,7 @@ import '../app/privacy-policy/markdown.css';
|
||||
import { ChevronLeft, MoveLeftIcon } from "lucide-react";
|
||||
|
||||
export default function ThemePage({ theme }: { theme: ZenTheme }) {
|
||||
const [readme, setReadme] = useState<string | null>(null);
|
||||
const [readme, setReadme] = useState("");
|
||||
useEffect(() => {
|
||||
getThemeMarkdown(theme).then(setReadme);
|
||||
}, []);
|
||||
|
||||
Reference in New Issue
Block a user