Skip to content

Commit f65f4da

Browse files
committed
fixup! Generate the ids for the workshops a member is attending in one go
Signed-off-by: jonathan.kerr <[email protected]>
1 parent 0236ba8 commit f65f4da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/events/_event.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
%span.badge.bg-primary.mb-3.mb-md-0
77
= link_to event.chapter.name, event.chapter.slug, class: 'text-light text-decoration-none'
88
- if !attending_ids.blank?
9-
- if attending_ids.include(event.id)
9+
- if attending_ids.include?(event.id)
1010
%span.badge.bg-success.mb-3.mb-md-0
1111
= link_to 'Attending', event.path, class: 'text-light text-decoration-none'
1212
- if @user

0 commit comments

Comments
 (0)