Skip to content

Commit

Permalink
add guard to prevent csv failure
Browse files Browse the repository at this point in the history
  • Loading branch information
asmega committed Oct 3, 2024
1 parent b2d8319 commit 3c218e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/payroll/payment_csv_row.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ def has_student_loan
end

def student_loan_plan
return if model.student_loan_plan.blank?

model.student_loan_plan.gsub("plan", "").humanize
end

Expand Down

0 comments on commit 3c218e3

Please sign in to comment.