Skip to content

Commit e23302c

Browse files
committed
Fix has_event_histories logic
1 parent 5e7df4f commit e23302c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/events_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def latest
3434
name: dojo.name,
3535
note: dojo.note,
3636
url: dojo.url,
37-
has_event_histories: latest_event.nil?,
37+
has_event_histories: latest_event.present?,
3838

3939
# 過去のイベント開催日と note 内の日付を比較し、新しい方の日付を表示
4040
event_at: (latest_event_at < last_session_date) ?

0 commit comments

Comments
 (0)