Skip to content

Commit

Permalink
fix #6069
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Mar 1, 2020
1 parent 45e2504 commit 472dfcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/User.scala
Expand Up @@ -447,7 +447,7 @@ final class User(
case (under, sum) => Math.round(under * 1000.0 / sum) / 10.0
}
}
ratingChart <- env.history.ratingChartApi.apply(u)
ratingChart <- env.history.ratingChartApi(u)
_ <- env.user.lightUserApi preloadMany { u.id :: perfStat.userIds.map(_.value) }
response <- negotiate(
html = Ok(html.user.perfStat(u, ranks, perfType, percentile, perfStat, ratingChart)).fuccess,
Expand Down
2 changes: 1 addition & 1 deletion app/views/user/perfStat.scala
Expand Up @@ -31,7 +31,7 @@ object perfStat {
ratingChart.map { rc =>
frag(
jsTag("chart/ratingHistory.js"),
embedJsUnsafe(s"lichess.ratingHistoryChart($rc,'${perfType.trans}');")
embedJsUnsafe(s"lichess.ratingHistoryChart($rc,'${perfType.trans(lila.i18n.defaultLang)}');")
)
}
),
Expand Down

0 comments on commit 472dfcb

Please sign in to comment.