diff --git a/client/src/components/ui/Version.js b/client/src/components/ui/Version.js index 30cec35d..918cd417 100644 --- a/client/src/components/ui/Version.js +++ b/client/src/components/ui/Version.js @@ -13,6 +13,12 @@ const Version = () => { checkUpdateFlag, } = useSelector((state) => state?.dashboard ?? {}, shallowEqual); + const { + dnsVersion: installDnsVersion, + } = useSelector((state) => state?.install ?? {}, shallowEqual); + + const version = dnsVersion || installDnsVersion; + const onClick = () => { dispatch(getVersion(true)); }; @@ -20,11 +26,12 @@ const Version = () => { return (
- {dnsVersion - && <> - version:  - {dnsVersion} - } + {version && ( + <> + version:  + {version} + + )} {checkUpdateFlag &&