Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
diegosteiner committed Oct 23, 2024
2 parents a11d58c + 7275317 commit b88f693
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/domain/booking_actions/public/cancel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ module Public
class Cancel < BookingActions::Base
def invoke!
booking.reload
transition_to = if booking.can_transition_to?(:declined_request)
:declined_request
transition_to = if booking.can_transition_to?(:cancelled_request)
:cancelled_request
elsif booking.can_transition_to?(:cancelation_pending)
:cancelation_pending
end
Expand Down
2 changes: 1 addition & 1 deletion app/models/payment_infos/qr_bill.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def creditor_address_lines
end

def debitor_address_lines
@debitor_address_lines ||= [invoice_address.lines, invoice_address.represented_by].max_by(&:size)
@debitor_address_lines ||= [invoice_address.lines, invoice_address.represented_by].compact.max_by(&:size)
end

def creditor_account
Expand Down

0 comments on commit b88f693

Please sign in to comment.