Skip to content

Commit

Permalink
When clicking on someone else's puzzle rating, show the perf stats fo…
Browse files Browse the repository at this point in the history
…r them (instead of going to the puzzle dashboard for the calling user).
  • Loading branch information
johndoknjas committed Dec 17, 2024
1 parent 099d2e1 commit 9f1143b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/user/src/main/ui/UserShowSide.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ final class UserShowSide(helpers: Helpers):
"active" -> active.contains(pk)
),
href := ctx.pref.showRatings.so:
if isPuzzle then routes.Puzzle.dashboard(Days(30), "home", u.username.some).url
if isPuzzle && ctx.is(u) then routes.Puzzle.dashboard(Days(30), "home", u.username.some).url
else routes.User.perfStat(u.username, pk).url
,
span(
Expand Down

0 comments on commit 9f1143b

Please sign in to comment.