From fcb202df20f2235fb4d97fb130f424e628256fb6 Mon Sep 17 00:00:00 2001 From: Sabrina Leggett Date: Thu, 15 Jan 2026 14:40:54 -0600 Subject: [PATCH] epayments quickfix --- app/services/importers/e_payments.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/services/importers/e_payments.rb b/app/services/importers/e_payments.rb index 3c728d0c..37c3aaf0 100644 --- a/app/services/importers/e_payments.rb +++ b/app/services/importers/e_payments.rb @@ -19,8 +19,9 @@ def perform court_case.defendant_case_parties.first else court_case.defendant_case_parties.find do |x| - match = "#{x.party.first_name} #{x.party.middle_name} #{x.party.last_name}" - match.downcase == full_name.downcase + has_first = full_name.downcase.include?(x.party.first_name.downcase) + has_last = full_name.downcase.include?(x.party.last_name.downcase) + has_first && has_last end end case_party.update!(fees: amount)