Skip to content

Commit 05d8e9d

Browse files
committed
Fix nil error for @prefectures_and_dojos in stats view
1 parent 3c3bae4 commit 05d8e9d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/views/shared/_dojos.html+smartphone.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<div id="accordion" class="panel-group" aria-multiselectable="true" role="tablist">
2+
<% if @prefectures_and_dojos.present? %>
23

34
<% @prefectures_and_dojos.each_with_index do |(prefecture, dojos), index| %>
45
<div class="panel panel-default">
@@ -19,6 +20,8 @@
1920
</div>
2021
</div>
2122
<% end %>
23+
24+
<% end %>
2225
</div>
2326

2427
<script>

0 commit comments

Comments
 (0)