Skip to content

Commit

Permalink
Choose card fix (#360)
Browse files Browse the repository at this point in the history
* chore: commit before merge

* fix: Groups should only be locked when the start date of the project is AFTER the current date
  • Loading branch information
DeLany123 authored Apr 21, 2024
1 parent 115add6 commit 734ea61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/types/Project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class Project {
* @returns True if the project is locked, false otherwise.
*/
public isLocked(): boolean {
return !this.visible || this.archived || this.locked_groups || moment(this.start_date).isBefore();
return !this.visible || this.archived || this.locked_groups || moment(this.start_date).isAfter();
}

/**
Expand Down

0 comments on commit 734ea61

Please sign in to comment.