Skip to content

Commit

Permalink
hub: Fix crash with get_feedback_url()
Browse files Browse the repository at this point in the history
  • Loading branch information
taoky committed Oct 26, 2024
1 parent aa3a873 commit 52d968c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/templates/hub.html
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,11 @@ <h1>{{ opened.name }}</h1>
return count;
},
get_feedback_url(challenge) {
return `/challenge/${opened.pk}/feedback/`
if (challenge) {
return `/challenge/${challenge.pk}/feedback/`;
} else {
return "";
}
}
},
updated: function () {
Expand Down

0 comments on commit 52d968c

Please sign in to comment.