fix?: changelog is empty

This commit is contained in:
Kentai Radiquum 2024-08-12 03:45:55 +05:00
parent 285f084acb
commit ff99b1db4c
Signed by: Radiquum
GPG key ID: 858E8EE696525EED

View file

@ -1,4 +1,6 @@
import { Modal, Button, Accordion } from "flowbite-react";
"use client";
import { Modal, Accordion } from "flowbite-react";
import Markdown from "markdown-to-jsx";
import { useEffect, useState } from "react";
import Styles from "./ChangelogModal.module.css";
@ -20,7 +22,7 @@ export const ChangelogModal = (props: {
>({});
useEffect(() => {
if (props.version) {
if (props.version != "") {
_fetchVersionChangelog(props.version).then((data) => {
setCurrentVersionChangelog(data);
});