Skip to content

Commit

Permalink
Merge pull request #134 from GTBitsOfGood/yash/119-add-training-log-e…
Browse files Browse the repository at this point in the history
…rror

training hours error added
  • Loading branch information
dpang314 authored Sep 22, 2023
2 parents 2e2d1c9 + 90fd4d6 commit 6256096
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mobile/screens/Training/AddTrainingLogScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ export default function AddTrainingLogScreen(props: any) {
} else if (Number(totalHours) < 0) {
setError("Total hours cannot be negative!");
return;
} else if (Number(totalHours) > 24) {
setError("Total hours can't exceed 24.");
return;
} else if (skillKeysSelected.length === 0) {
setError("Please select at least one skill displayed.");
return;
Expand Down

0 comments on commit 6256096

Please sign in to comment.