Skip to content

Commit 04ff852

Browse files
committed
fix #5785 -- fix off by one in obscure comment about course license that probably nobody would understand
1 parent 8a423e5 commit 04ff852

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/packages/frontend/course/configuration/upgrades.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,9 +583,12 @@ export function StudentProjectUpgrades({
583583
remove_site_license_id(license_id);
584584
}}
585585
warn_if={(info, _) => {
586+
const upgradeHostProject = settings.get(
587+
"license_upgrade_host_project",
588+
);
586589
const n =
587590
get_store().get_student_ids().length +
588-
1 +
591+
(upgradeHostProject ? 1 : 0) +
589592
(shared_project_id ? 1 : 0);
590593
if (info.run_limit < n) {
591594
return `NOTE: This license can only upgrade ${info.run_limit} simultaneous running projects, but there are ${n} projects associated to this course.`;

0 commit comments

Comments
 (0)