diff --git a/app/component/modalSearchCity/Content.js b/app/component/modalSearchCity/Content.js index 3edf6a1..fc069ab 100644 --- a/app/component/modalSearchCity/Content.js +++ b/app/component/modalSearchCity/Content.js @@ -48,9 +48,11 @@ function Content({ name="city" label="شهر" disabled={ - !isProvinceInclude || - !provinceSelected || - filteredCities.length === 0 + isProvinceInclude + ? !isProvinceInclude || + !provinceSelected || + filteredCities.length === 0 + : !provinceSelected || filteredCities.length === 0 } /> diff --git a/app/component/modalSearchCity/index.js b/app/component/modalSearchCity/index.js index 0e298dc..caa0d0f 100644 --- a/app/component/modalSearchCity/index.js +++ b/app/component/modalSearchCity/index.js @@ -11,8 +11,7 @@ import Content from "./Content"; function ModalSearchCity({ children, selected, setSelected, open, setOpen }) { const provinceSelected = selected.province; - // const hostName = window.location.host; - const hostName = "urmia-nobat.ir"; + const hostName = window.location.host; const isProvinceInclude = citiesData.find( (city) => city.domain !== "nobat724.com" && hostName.includes(city.domain) );