Skip to content

Commit

Permalink
Update the correct key for food produced on the HR app
Browse files Browse the repository at this point in the history
  • Loading branch information
Techno11 committed Sep 18, 2024
1 parent bca19b5 commit 00b896e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions front-end/src/seasons/fgc-2024/referee/HRExtra.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,22 +80,22 @@ const HeadRefereeExtra: React.FC = () => {
) => {
if (manuallyTyped) {
handleMatchDetailsUpdate(
alliance === 'red' ? 'redFoodSecured' : 'blueFoodSecured',
alliance === 'red' ? 'redFoodProduced' : 'blueFoodProduced',
newValue
);
}
};

const handleFoodProducedDecrement = (alliance: Alliance) => {
handleMatchDetailsAdjustment(
alliance === 'red' ? 'redFoodSecured' : 'blueFoodSecured',
alliance === 'red' ? 'redFoodProduced' : 'blueFoodProduced',
-1
);
};

const handleFoodProducedIncrement = (alliance: Alliance) => {
handleMatchDetailsAdjustment(
alliance === 'red' ? 'redFoodSecured' : 'blueFoodSecured',
alliance === 'red' ? 'redFoodProduced' : 'blueFoodProduced',
1
);
};
Expand Down

0 comments on commit 00b896e

Please sign in to comment.