Skip to content

Commit

Permalink
fix(junior): fix issu front type = null for a challenge
Browse files Browse the repository at this point in the history
  • Loading branch information
rouxxi committed Dec 17, 2024
1 parent 022f259 commit 24e3a5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion junior/app/components/challenge/item/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default class Item extends Component {
});
}
get isMediaWithForm() {
return this.args.challenge.hasForm && this.hasMedia && this.args.challenge.type !== undefined;
return this.args.challenge.hasForm && this.hasMedia && !!this.args.challenge.type;
}

get hasMedia() {
Expand Down

0 comments on commit 24e3a5d

Please sign in to comment.