Skip to content

Commit

Permalink
show off data by default
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed Dec 12, 2024
1 parent ef54686 commit cd209cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/nutrition/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ import { NUTRIMENTS_ORDER } from "./config";
export default function Nutrition() {
const [partiallyFilled, setPartiallyFilled] = React.useState(false);
const [displayOFFValue, setDisplayOFFValue] = React.useState(false);
const handlePartiallyFilled = (_, checked) => setPartiallyFilled(checked);
const handlePartiallyFilled = (_, checked) => {
setPartiallyFilled(checked);
setDisplayOFFValue(checked);
};
const handleDisplayOFFValue = (_, checked) => setDisplayOFFValue(checked);

const [additionalIds, setAdditionalIds] = React.useState([]);
Expand Down

0 comments on commit cd209cf

Please sign in to comment.