Skip to content

Commit

Permalink
Merge pull request #210 from GreenTeaProgrammers/fix/frontend/nursery…
Browse files Browse the repository at this point in the history
…/create-bus

fix:バス名の長さのバリデーションを修正
  • Loading branch information
lovelovetrb authored Feb 23, 2024
2 parents 6c83bd0 + d5a178b commit ce2d10c
Showing 1 changed file with 15 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,22 @@ class _BusEditPageState extends State<BusEditPage> {
_createBusError = CreateBusError.fieldsNotFilled;
});
return true;
//Note 今のところ保護者が選択されていなくても作成できる
// } else if (CreateBusValidator.validateGuardians(
// morningSelectedGuardiansId, eveningSelectedGuardiansId)) {
// setState(() {
// _createBusError = CreateBusError.noGuardiansSelected;
// });
// return true;
} else if (CreateBusValidator.validateNameLength(_busNameController.text)) {
setState(() {
_createBusError = CreateBusError.nameTooLong;
});
return true;
}
//Note 今のところ保護者が選択されていなくても作成できる
// } else if (CreateBusValidator.validateGuardians(
// morningSelectedGuardiansId, eveningSelectedGuardiansId)) {
// setState(() {
// _createBusError = CreateBusError.noGuardiansSelected;
// });
// return true;

//Todo 将来的に修正する
// } else if (CreateBusValidator.validateNameLength(_busNameController.text)) {
// setState(() {
// _createBusError = CreateBusError.nameTooLong;
// });
// return true;
// }

return false;
}
Expand Down

0 comments on commit ce2d10c

Please sign in to comment.