Skip to content

TagSpaces is an offline, open source, document manager with tagging support

some fix for version update

Mladen Sapundshiev334fb03e3055
diff --git a/app/components/dialogs/AboutDialog.js b/app/components/dialogs/AboutDialog.js
index ea470614e..55755b1b4 100644
--- a/app/components/dialogs/AboutDialog.js
+++ b/app/components/dialogs/AboutDialog.js
@@ -53,7 +53,7 @@ document.title = productName + ' ' + versionMeta.version;
const AboutDialog = (props: Props) => {
const [updateAvailable, setUpdateAvailable] = useState(false);
- const [newVersion] = useState();
+ const [newVersion, setNewVersion] = useState('');
function checkForUpdates() {
if (updateAvailable) {
@@ -74,7 +74,7 @@ const AboutDialog = (props: Props) => {
newVersion: cleanedLastVersion.version
});
} else {
- setUpdateAvailable({
+ setNewVersion({
newVersion: versionMeta.version
});
}