|
@ -306,11 +306,8 @@ module WidgetsHelper |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
if companion_user.present? |
|
|
if companion_user.present? |
|
|
cr = ConferenceRegistration.where(user_id: companion_user.id).order(created_at: :desc).limit(1).first |
|
|
cr = ConferenceRegistration.where(user_id: companion_user.id, conference_id: registration.conference_id).limit(1).first |
|
|
|
|
|
return companion_user if cr.present? && cr.registered? |
|
|
if cr.present? && ((cr.steps_completed || []).include? 'questions') |
|
|
|
|
|
return companion_user |
|
|
|
|
|
end |
|
|
|
|
|
end |
|
|
end |
|
|
return :unregistered |
|
|
return :unregistered |
|
|
end |
|
|
end |
|
|