From d211e224501bd4739506f03a0e0bcc065dac4381 Mon Sep 17 00:00:00 2001 From: Mykyta Mykulskyi Date: Mon, 23 Dec 2024 23:59:04 +0100 Subject: [PATCH] fix: questions aren't shown, when switching to online mode --- app/Http/Resources/QuizResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Resources/QuizResource.php b/app/Http/Resources/QuizResource.php index 43e9ec51..f6396636 100644 --- a/app/Http/Resources/QuizResource.php +++ b/app/Http/Resources/QuizResource.php @@ -22,7 +22,7 @@ public function toArray($request): array "isPublic" => $this->is_public, "canBeLocked" => $this->canBeLocked, "canBeUnlocked" => $this->canBeUnlocked, - "questions" => $this->is_local ? [] : QuestionResource::collection($this->questions), + "questions" => QuestionResource::collection($this->questions), "isUserAssigned" => $this->isUserAssigned($request->user()), "isRankingPublished" => $this->isRankingPublished, "isLocal" => $this->is_local,