Skip to content

Commit

Permalink
Fix chronological stages bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dangershony committed Dec 30, 2023
1 parent 224ba08 commit c5b3f15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Angor/Client/Pages/Create.razor
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,12 @@
foreach (var stage in project.Stages)
{
if ((stage.ReleaseDate - prev).Days < 0)
{
notificationComponent.ShowErrorMessage("Stages must be chronological");
return;
}

prev = stage.ReleaseDate;
}

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

0 comments on commit c5b3f15

Please sign in to comment.