diff --git a/components/Geopanel/Geopanel.tsx b/components/Geopanel/Geopanel.tsx index 10efed1..30e885e 100644 --- a/components/Geopanel/Geopanel.tsx +++ b/components/Geopanel/Geopanel.tsx @@ -32,6 +32,7 @@ const Geopanel = ({ selectedDistrictFeatures, setSelectedDistrictFeatures, selec const districtBtnClickHandler = (e: MouseEvent, district: Districts) => { const overlappedData = district === "senate" ? senateOverlapped : assemblyOverlapped const selectedDistrict = (e.target as HTMLElement).innerText + /* @ts-ignore */ const clickedDistrictData = { features: ((district === "assembly" ? assembly : senate) as GeoJson).features.filter((d, i) => d.properties.District.toString() === selectedDistrict) }