Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lislis committed Jun 14, 2019
1 parent 29b8d72 commit e2026e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/api/walks/_page.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ if page.variant == "story"
json.array! pages_parse_content(page.content)
end
json.challenges do
json.array! pages_parse_challenges(page.challenges) unless page.challenges.empty?
json.array! pages_parse_list(page.challenges) unless page.challenges.empty?
end
end

if page.variant == "quiz"
json.question page.question if page.question
json.answers do
json.array! pages_clean_answers(pages_parse_answers(page.answers))
json.array! pages_clean_answers(pages_parse_list(page.answers))
end
json.correct pages_correct_answer_index(pages_parse_answers(page.answers))
json.correct pages_correct_answer_index(pages_parse_list(page.answers))
end

0 comments on commit e2026e3

Please sign in to comment.