From 1f164c70059a8f2f8d6e33b805243dbcd6ce4702 Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Thu, 6 Jun 2019 15:54:19 +0300 Subject: [PATCH] - client: fix versions check --- client/src/reducers/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/src/reducers/index.js b/client/src/reducers/index.js index 7e46f660..17d82608 100644 --- a/client/src/reducers/index.js +++ b/client/src/reducers/index.js @@ -124,9 +124,8 @@ const dashboard = handleActions({ [actions.getVersionSuccess]: (state, { payload }) => { const currentVersion = state.dnsVersion === 'undefined' ? 0 : state.dnsVersion; - if (payload && versionCompare(currentVersion, payload.version) === -1) { + if (payload && versionCompare(currentVersion, payload.new_version) === -1) { const { - version, announcement_url: announcementUrl, new_version: newVersion, can_autoupdate: canAutoUpdate, @@ -134,7 +133,6 @@ const dashboard = handleActions({ const newState = { ...state, - version, announcementUrl, newVersion, canAutoUpdate,