Skip to content

Commit

Permalink
fix challenge board with empty category
Browse files Browse the repository at this point in the history
  • Loading branch information
Miłosz Skaza committed Jul 4, 2023
1 parent c7b4b78 commit f2885d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/challenges.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ Alpine.data("ChallengeBoard", () => ({
getChallenges(category) {
let challenges = this.challenges;

if (category) {
if (category !== null) {
challenges = this.challenges.filter(challenge => challenge.category === category);
}

Expand Down

0 comments on commit f2885d9

Please sign in to comment.