From c1924a8b8a8f6650c273a7ebc1a857ee6068594f Mon Sep 17 00:00:00 2001 From: Artem Krisanov <a.krisanov@adguard.com> Date: Tue, 11 Apr 2023 18:16:24 +0300 Subject: [PATCH] AG-21184 - Added transforming protection_disabled_duration field value from 0 to null; Updates#5689 Squashed commit of the following: commit 4de24101622c8c76be8e2f1eb1b670c36a1e74c8 Merge: fd9ee1fb 0376afb3 Author: Artem Krisanov <a.krisanov@adguard.com> Date: Tue Apr 11 18:12:57 2023 +0300 Merge branch 'master' of ssh://bit.adguard.com:7999/dns/adguard-home into 5689-protection-status commit fd9ee1fba4e507875dd8b2b605d14cd78aa4e918 Author: Artem Krisanov <a.krisanov@adguard.com> Date: Tue Apr 11 14:10:44 2023 +0300 Added transforming protection_disabled_duration field value from 0 to null; --- client/src/actions/encryption.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/actions/encryption.js b/client/src/actions/encryption.js index 5db97607..7ace1d2f 100644 --- a/client/src/actions/encryption.js +++ b/client/src/actions/encryption.js @@ -49,6 +49,9 @@ export const setTlsConfig = (config) => async (dispatch, getState) => { const dnsStatus = await apiClient.getGlobalStatus(); if (dnsStatus) { + if (dnsStatus.protection_disabled_duration === 0) { + dnsStatus.protection_disabled_duration = null; + } dispatch(dnsStatusSuccess(dnsStatus)); }