make sure amount is a string.

This commit is contained in:
James Cole 2020-07-11 07:18:41 +02:00
parent 3782388e45
commit 22cb9dfbe0
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D

View File

@ -107,7 +107,7 @@ class AccountTransformer extends AbstractTransformer
'currency_code' => $currencyCode,
'currency_symbol' => $currencySymbol,
'currency_decimal_places' => $decimalPlaces,
'current_balance' => round(app('steam')->balance($account, $date), $decimalPlaces),
'current_balance' => (string) round(app('steam')->balance($account, $date), $decimalPlaces),
'current_balance_date' => $date->format('Y-m-d'),
'notes' => $this->repository->getNoteText($account),
'monthly_payment_date' => $monthlyPaymentDate,