Skip to content

Commit 97c7c86

Browse files
committed
fix: Fix the linter
1 parent 5f297ce commit 97c7c86

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/components/MunicipalityPage.tsx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function MunicipalityPage() {
116116
// eslint-disable-next-line no-undef
117117
fetch("data/municipalities-species-map.geojson").then(res => res.json()),
118118
// eslint-disable-next-line no-undef
119-
fetch("data/processed-transects.json").then(res => res.json())
119+
fetch("data/processed-transects.json").then(res => res.json()),
120120
])
121121
.then(([geoJsonData, transectsData]) => {
122122
setGeoData(geoJsonData);
@@ -164,13 +164,19 @@ function MunicipalityPage() {
164164
);
165165
}
166166

167-
const { Concelho, species, speciesCount, transectCount, transects: municipalityTransectsInfo, monthlySpeciesCount, monthlySpeciesLists, monitoringSinceYear } =
168-
municipalityFeature.properties;
167+
const {
168+
Concelho,
169+
species,
170+
speciesCount,
171+
transectCount,
172+
transects: municipalityTransectsInfo,
173+
monthlySpeciesCount,
174+
monthlySpeciesLists,
175+
monitoringSinceYear,
176+
} = municipalityFeature.properties;
169177

170178
// Get species list based on filter mode
171-
const displayedSpecies = filterByMonth
172-
? (monthlySpeciesLists?.[selectedMonth] ?? [])
173-
: species;
179+
const displayedSpecies = filterByMonth ? (monthlySpeciesLists?.[selectedMonth] ?? []) : species;
174180

175181
const displayedSpeciesCount = filterByMonth
176182
? (monthlySpeciesCount?.[selectedMonth] ?? 0)

0 commit comments

Comments
 (0)