Skip to content

Commit

Permalink
Add error message
Browse files Browse the repository at this point in the history
  • Loading branch information
dangershony committed Oct 13, 2023
1 parent a084d33 commit ac0d63d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Angor/Client/Pages/Create.razor
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@
DateTime prev = DateTime.UtcNow;
foreach (var stage in project.Stages)
{
if ((stage.ReleaseDate - prev).Days < 10)
notificationComponent.ShowErrorMessage("Stages must be at least 10 days a part");
if ((stage.ReleaseDate - prev).Days < 0)
notificationComponent.ShowErrorMessage("Stages must be chronological");
}

var operationResult = await notificationComponent.LongOperation(async () =>
Expand Down

0 comments on commit ac0d63d

Please sign in to comment.