Skip to content

Commit ba658bf

Browse files
authored
adding limitations (#267)
1 parent 8925ba8 commit ba658bf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Angor/Client/Pages/Create.razor

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,6 +1187,15 @@
11871187
return false;
11881188
}
11891189

1190+
foreach (var stage in project.ProjectInfo.Stages)
1191+
{
1192+
if (stage.AmountToRelease <= 0 || stage.AmountToRelease > 100)
1193+
{
1194+
notificationComponent.ShowErrorMessage("Stage percentage must be between 1 and 100.");
1195+
return false;
1196+
}
1197+
}
1198+
11901199
var projects = storage.GetFounderProjects().Where(_ => !string.IsNullOrEmpty(_.CreationTransactionId)).ToList();
11911200

11921201
if (projects.Any(a => project.ProjectInfo.ProjectIdentifier == a.ProjectInfo.ProjectIdentifier))

0 commit comments

Comments
 (0)