diff --git a/src/components/AreaSelection.tsx b/src/components/AreaSelection.tsx index 29295f54..9b569069 100644 --- a/src/components/AreaSelection.tsx +++ b/src/components/AreaSelection.tsx @@ -98,7 +98,7 @@ const AreaSelection: React.FC = ({ tagName={t("FACILITATORS.STATE")} selectedCategories={selectedState} onCategoryChange={handleStateChangeWrapper} - overall={inModal ? false : true} + overall={!inModal} defaultValue={t("COMMON.ALL_STATES")} /> @@ -111,7 +111,7 @@ const AreaSelection: React.FC = ({ selectedCategories={selectedDistrict} onCategoryChange={handleDistrictChangeWrapper} disabled={selectedState?.length === 0 || (selectedState && selectedState[0] === "")} - overall={inModal ? false : true} + overall={!inModal} defaultValue={t("COMMON.ALL_DISTRICTS")} /> @@ -126,7 +126,7 @@ const AreaSelection: React.FC = ({ disabled={ selectedDistrict?.length === 0 || (selectedDistrict && selectedDistrict[0] === "") } - overall={inModal ? false : true} + overall={!inModal} defaultValue={t("COMMON.ALL_BLOCKS")} /> @@ -139,7 +139,7 @@ const AreaSelection: React.FC = ({ selectedCategories={selectedCenter} onCategoryChange={handleCenterChangeWrapper} disabled={selectedBlock.length === 0 || selectedCenter[0] === ""} - overall={inModal ? false : true} + overall={!inModal} /> )}