limit the minimal date

fix/date-verification
Lucas DELANIER 6 months ago
parent b27cd37a39
commit 42e515de29

@ -191,7 +191,7 @@ struct CreationBetView: View {
DatePicker(
"",
selection: $viewModel.endRegisterDate,
in: dateRange,
in: Date()...,
displayedComponents: [.date, .hourAndMinute]
)
.accentColor(AllInColors.lightPurpleColor)
@ -229,7 +229,7 @@ struct CreationBetView: View {
DatePicker(
"",
selection: $viewModel.endBetDate,
in: dateRange,
in: viewModel.endRegisterDate...,
displayedComponents: [.date, .hourAndMinute]
)
.accentColor(AllInColors.lightPurpleColor)

Loading…
Cancel
Save