Skip to content

Commit

Permalink
don't require full lichess profile completion to apply for coach
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Mar 14, 2020
1 parent d781cbb commit b810d51
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/coach/edit.scala
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ object edit {
),
div(cls := "overview")(
h1(widget.titleName(c)),
div(cls := "todo", attr("data-profile") := c.user.profileOrDefault.isComplete)(
div(cls := "todo", attr("data-profile") := c.user.profileOrDefault.nonEmptyRealName.isDefined)(
h3("TODO list before publishing your coach profile"),
ul
),
Expand Down
2 changes: 0 additions & 2 deletions modules/user/src/main/Profile.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ case class Profile(

def isEmpty = completionPercent == 0

def isComplete = completionPercent == 100

def completionPercent: Int =
100 * List(country, bio, firstName, lastName).count(_.isDefined) / 4

Expand Down

0 comments on commit b810d51

Please sign in to comment.