mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-17 02:48:28 -07:00
- client: fix versions check
This commit is contained in:
parent
44f224d69e
commit
1f164c7005
@ -124,9 +124,8 @@ const dashboard = handleActions({
|
|||||||
[actions.getVersionSuccess]: (state, { payload }) => {
|
[actions.getVersionSuccess]: (state, { payload }) => {
|
||||||
const currentVersion = state.dnsVersion === 'undefined' ? 0 : state.dnsVersion;
|
const currentVersion = state.dnsVersion === 'undefined' ? 0 : state.dnsVersion;
|
||||||
|
|
||||||
if (payload && versionCompare(currentVersion, payload.version) === -1) {
|
if (payload && versionCompare(currentVersion, payload.new_version) === -1) {
|
||||||
const {
|
const {
|
||||||
version,
|
|
||||||
announcement_url: announcementUrl,
|
announcement_url: announcementUrl,
|
||||||
new_version: newVersion,
|
new_version: newVersion,
|
||||||
can_autoupdate: canAutoUpdate,
|
can_autoupdate: canAutoUpdate,
|
||||||
@ -134,7 +133,6 @@ const dashboard = handleActions({
|
|||||||
|
|
||||||
const newState = {
|
const newState = {
|
||||||
...state,
|
...state,
|
||||||
version,
|
|
||||||
announcementUrl,
|
announcementUrl,
|
||||||
newVersion,
|
newVersion,
|
||||||
canAutoUpdate,
|
canAutoUpdate,
|
||||||
|
Loading…
Reference in New Issue
Block a user