[feat] remove unintended check; add auto-redirect to non-free ticket

This commit is contained in:
Jimmy 2021-03-04 21:50:26 -08:00
parent 1ca58961c1
commit da8939dd3a
4 changed files with 24 additions and 21 deletions

View file

@ -349,10 +349,8 @@ class User < ApplicationRecord
def count_registration_tickets(conference)
count = 0
ticket_purchases.by_conference(conference).each do |ticket_purchase|
ticket_purchase.physical_tickets.each do |physical_ticket|
if physical_ticket.ticket.registration_ticket
count += 1
end
if ticket_purchase.ticket.registration_ticket
count += 1
end
end