diff --git a/app/App.tsx b/app/App.tsx index aff0b19..bdff1ce 100644 --- a/app/App.tsx +++ b/app/App.tsx @@ -26,7 +26,6 @@ export const App = (props) => { setCurrentVersion(data.version); setPreviousVersions(data.previous); } - console.log(data.version, preferencesStore.params.version); } useEffect(() => { if (preferencesStore._hasHydrated) { diff --git a/app/components/ChangelogModal/ChangelogModal.tsx b/app/components/ChangelogModal/ChangelogModal.tsx index 1ec5aef..2d8bae4 100644 --- a/app/components/ChangelogModal/ChangelogModal.tsx +++ b/app/components/ChangelogModal/ChangelogModal.tsx @@ -20,9 +20,11 @@ export const ChangelogModal = (props: { >({}); useEffect(() => { - _fetchVersionChangelog(props.version).then((data) => { - setCurrentVersionChangelog(data); - }); + if (props.version) { + _fetchVersionChangelog(props.version).then((data) => { + setCurrentVersionChangelog(data); + }); + } if (props.previousVersions.length > 0) { props.previousVersions.forEach((version) => { @@ -36,7 +38,7 @@ export const ChangelogModal = (props: { }); }); } - }, [props.isOpen]); + }, []); return (