From 24e3a5df78328b5d305bdd27b4bae0b6a21ff81b Mon Sep 17 00:00:00 2001 From: rouxxi Date: Tue, 17 Dec 2024 17:56:10 +0100 Subject: [PATCH] fix(junior): fix issu front type = null for a challenge --- junior/app/components/challenge/item/component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/junior/app/components/challenge/item/component.js b/junior/app/components/challenge/item/component.js index d8bfc003eae..b4152b7691e 100644 --- a/junior/app/components/challenge/item/component.js +++ b/junior/app/components/challenge/item/component.js @@ -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() {