Skip to content

Commit

Permalink
Merge pull request #127 from Fluffy-Frontier/upstream-mirror-24412
Browse files Browse the repository at this point in the history
[TG Mirror] Fixes source of tgui errors in accounts console [MDB IGNORE]
  • Loading branch information
AnywayFarus authored Oct 18, 2023
2 parents b58808c + 2a62b8a commit e6b06e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/game/machinery/computer/accounting.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@

for(var/current_account as anything in SSeconomy.bank_accounts_by_id)
var/datum/bank_account/current_bank_account = SSeconomy.bank_accounts_by_id[current_account]
var/job_title = current_bank_account.account_job?.title
player_accounts += list(list(
"name" = current_bank_account.account_holder,
"job" = current_bank_account.account_job.title,
"job" = job_title ? job_title : "No Job", // because this can be null
"balance" = round(current_bank_account.account_balance),
"modifier" = round((current_bank_account.payday_modifier * 0.9), 0.1),
))
Expand Down

0 comments on commit e6b06e3

Please sign in to comment.