Skip to content

Commit

Permalink
fix:バス名の長さのバリデーションを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
KikyoNanakusa committed Feb 23, 2024
1 parent d8edd67 commit d5a178b
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 d5a178b

Please sign in to comment.