diff --git a/src/components/GoalsComponents/GoalConfigModal/ConfigGoal.tsx b/src/components/GoalsComponents/GoalConfigModal/ConfigGoal.tsx index efa65961e..64913f485 100644 --- a/src/components/GoalsComponents/GoalConfigModal/ConfigGoal.tsx +++ b/src/components/GoalsComponents/GoalConfigModal/ConfigGoal.tsx @@ -39,7 +39,7 @@ const CustomInput: React.FC = ({ placeholder, value, handleCh ); const roundOffHours = (hrsValue: string) => { - return hrsValue === "" ? "" : String(Math.max(Math.round(Number(hrsValue)), 0)); + return hrsValue === "" ? "" : String(Math.min(Math.max(Math.round(Number(hrsValue)), 0), 99)); }; const ConfigGoal = ({ goal, action }: { action: "Update" | "Create"; goal: GoalItem }) => {