Skip to content

Commit

Permalink
fix bad stripe links
Browse files Browse the repository at this point in the history
  • Loading branch information
ahamelers committed Jun 18, 2024
1 parent 3d7092a commit 0d7db5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/helpers/stash_engine/admin_datasets_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ def format_external_references(instring)
return '' unless instring.present?

# Stripe invoice references
return render inline: link_to(instring, "https://dashboard.stripe.com/invoices/#{instring}", target: :_blank) if instring.start_with?('in_')
if instring.start_with?('in_') && !instring.start_with?('in_progress')
return render inline: link_to(instring, "https://dashboard.stripe.com/invoices/#{instring}",
target: :_blank)
end

# Turn salesforce references into hyperlinks
matchdata = instring.match(/(.*)SF ?#? ?(\d+)(.*)/)
Expand Down

0 comments on commit 0d7db5d

Please sign in to comment.