Skip to content

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

Fixing version check crash in About #1016

Ilian Sapundshiev842c3bdb8db3
diff --git a/app/components/dialogs/AboutDialog.js b/app/components/dialogs/AboutDialog.js
index d66d2c536..e562f0d3a 100644
--- a/app/components/dialogs/AboutDialog.js
+++ b/app/components/dialogs/AboutDialog.js
@@ -160,9 +160,7 @@ const AboutDialog = (props: Props) => {
let versionInfo = 'Check for updates';
if (newVersion && newVersion.length > 1) {
if (updateAvailable) {
- versionInfo = i18n.t('getNewVersion', {
- newVersion: this.state.newVersion
- });
+ versionInfo = i18n.t('getNewVersion', { newVersion });
} else {
versionInfo = i18n.t('latestVersion', { productName });
}