Skip to content

Commit

Permalink
✨ Fixed formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kunkoala committed Sep 27, 2024
1 parent 4be3f67 commit df75997
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ export function LineChartSettings() {
const newThreshold = Number(event.target.value);

// update redux state
dispatch(setHorizontalYAxisThreshold({
district: selectedDistrict,
compartment: selectedCompartment ?? '',
threshold: newThreshold,
}));
dispatch(
setHorizontalYAxisThreshold({
district: selectedDistrict,
compartment: selectedCompartment ?? '',
threshold: newThreshold,
})
);
};

return (
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/components/LineChartContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export default function LineChartContainer() {
const selectedCompartment = useAppSelector((state) => state.dataSelection.compartment);
const selectedDistrict = useAppSelector((state) => state.dataSelection.district.ags);
const selectedDateInStore = useAppSelector((state) => state.dataSelection.date);
const horizontalYAxisThreshold = useAppSelector((state) => state.userPreference.horizontalYAxisThresholds?.[`${selectedDistrict}-${selectedCompartment}`]?.threshold);
const horizontalYAxisThreshold = useAppSelector(
(state) => state.userPreference.horizontalYAxisThresholds?.[`${selectedDistrict}-${selectedCompartment}`]?.threshold
);
const referenceDay = useAppSelector((state) => state.dataSelection.simulationStart);
const minDate = useAppSelector((state) => state.dataSelection.minDate);
const maxDate = useAppSelector((state) => state.dataSelection.maxDate);
Expand Down

0 comments on commit df75997

Please sign in to comment.