From d93e927539999cff4cfc15bfb63a07af599f79a8 Mon Sep 17 00:00:00 2001 From: pbca26 Date: Sat, 15 Jul 2017 17:28:18 +0300 Subject: [PATCH] settings version check fix --- react/src/components/dashboard/settings/settings.js | 4 ++-- react/www/index.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/react/src/components/dashboard/settings/settings.js b/react/src/components/dashboard/settings/settings.js index 386b3e7..4812a33 100644 --- a/react/src/components/dashboard/settings/settings.js +++ b/react/src/components/dashboard/settings/settings.js @@ -172,9 +172,9 @@ class Settings extends React.Component { checkForUpdateUIPromise() .then((res) => { let _updateLog = this.state.updateLog; - _updateLog.push(res.result === 'update' ? ('New UI update available ' + res.version.remote) : 'You have the lastest UI version'); + _updateLog.push(res.result === 'update' ? (`New UI update available ${res.version.remote}`) : 'You have the lastest UI version'); this.setState(Object.assign({}, this.state, { - updatePatch: res.result, + updatePatch: res.result === 'update' ? true : false, updateLog: _updateLog, })); }); diff --git a/react/www/index.html b/react/www/index.html index 513b495..d8d2d3a 100644 --- a/react/www/index.html +++ b/react/www/index.html @@ -6,7 +6,7 @@ - Agama (v0.2.0.2a-beta) + Agama (v0.2.0.21a-beta)