remove default value for handle filter list city by data in url
This commit is contained in:
@@ -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
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -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)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user