Skip to content

Firefly III: a personal finances manager

make sure amount is a string.

James Cole22cb9dfbe0b6
diff --git a/app/Transformers/AccountTransformer.php b/app/Transformers/AccountTransformer.php
index 4ef02b3a82..d308481b64 100644
--- a/app/Transformers/AccountTransformer.php
+++ b/app/Transformers/AccountTransformer.php
@@ -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,