diff --git a/client/src/components/Settings/Dhcp/index.js b/client/src/components/Settings/Dhcp/index.js index c152b7f0..18dd4901 100644 --- a/client/src/components/Settings/Dhcp/index.js +++ b/client/src/components/Settings/Dhcp/index.js @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'; import classnames from 'classnames'; import { Trans, withNamespaces } from 'react-i18next'; -import { RESPONSE_STATUS } from '../../../helpers/constants'; +import { DHCP_STATUS_RESPONSE } from '../../../helpers/constants'; import Form from './Form'; import Leases from './Leases'; import Interface from './Interface'; @@ -24,7 +24,7 @@ class Dhcp extends Component { config, check, processingDhcp, processingConfig, } = this.props.dhcp; const otherDhcpFound = - check && check.otherServer && check.otherServer.found === RESPONSE_STATUS.YES; + check && check.otherServer && check.otherServer.found === DHCP_STATUS_RESPONSE.YES; const filledConfig = Object.keys(config).every((key) => { if (key === 'enabled' || key === 'icmp_timeout_msec') { return true; @@ -67,7 +67,7 @@ class Dhcp extends Component { getActiveDhcpMessage = (t, check) => { const { found } = check.otherServer; - if (found === RESPONSE_STATUS.ERROR) { + if (found === DHCP_STATUS_RESPONSE.ERROR) { return (