Fix numbering shown for nested tips

This commit is contained in:
Sebastian Serth
2021-02-01 15:55:56 +01:00
parent 66060485e7
commit a72c022e4a

View File

@ -24,4 +24,4 @@
= tip.example
= render(partial: 'tips/collapsed_card',
collection: exercise_tip.children, as: :exercise_tip,
locals: { tip_prefix: "#{index}." })
locals: { tip_prefix: "#{tip_prefix + index.to_s}." })