From ff99b1db4ca47e293bf0a9f6a5d929c459b169f5 Mon Sep 17 00:00:00 2001 From: Kentai Radiquum Date: Mon, 12 Aug 2024 03:45:55 +0500 Subject: [PATCH] fix?: changelog is empty --- app/components/ChangelogModal/ChangelogModal.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/components/ChangelogModal/ChangelogModal.tsx b/app/components/ChangelogModal/ChangelogModal.tsx index 2d8bae4..d174fde 100644 --- a/app/components/ChangelogModal/ChangelogModal.tsx +++ b/app/components/ChangelogModal/ChangelogModal.tsx @@ -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); });