Skip to content

Commit

Permalink
[Transaction] fix email notification to buyer
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolailv authored and aivils committed Oct 28, 2019
1 parent a44eb17 commit 4849436
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/mailers/person_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def transaction_confirmed(conversation, community, send_to = :seller)
@email_type = "email_about_completed_transactions"
@conversation = conversation
recipient = send_to == :seller ? conversation.seller : conversation.buyer
@recipient_mode = send_to
set_up_layout_variables(recipient, community, @email_type)
with_locale(recipient.locale, community.locales.map(&:to_sym), community.id) do
premailer_mail(:to => recipient.confirmed_notification_emails_to,
Expand Down
2 changes: 1 addition & 1 deletion app/views/person_mailer/transaction_confirmed.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
%td{:align => "left"}
%font{body_font}
- stripe_confirmed = @conversation.payment_gateway == :stripe && @conversation.status == 'confirmed'
- key = stripe_confirmed ? 'emails.transaction_confirmed.stripe.has_marked_request_as_confirmed' : "emails.transaction_confirmed.has_marked_request_as_#{@conversation.status}"
- key = stripe_confirmed && @recipient_mode == :seller ? 'emails.transaction_confirmed.stripe.has_marked_request_as_confirmed' : "emails.transaction_confirmed.has_marked_request_as_#{@conversation.status}"
- if @conversation.last_transition_by_admin?
- other_party_full_name = t('emails.transaction_confirmed.team_title')
- else
Expand Down

0 comments on commit 4849436

Please sign in to comment.