Skip to content

Commit

Permalink
fix: questions aren't shown, when switching to online mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JokeUrSelf committed Dec 23, 2024
1 parent d69321f commit d211e22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Resources/QuizResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d211e22

Please sign in to comment.