This commit is contained in:
James 2022-06-01 15:31:17 +02:00
parent d1529a0cfc
commit ced55b5065

View File

@ -117,7 +117,7 @@ class TransactionGroupTransformer extends AbstractTransformer
// amount: // amount:
$type = $this->stringFromArray($transaction, 'transaction_type_type', TransactionType::WITHDRAWAL); $type = $this->stringFromArray($transaction, 'transaction_type_type', TransactionType::WITHDRAWAL);
$amount = app('steam')->positive($row['amount'] ?? '0'); $amount = app('steam')->positive((string)($row['amount'] ?? '0'));
$foreignAmount = null; $foreignAmount = null;
if (null !== $row['foreign_amount']) { if (null !== $row['foreign_amount']) {
$foreignAmount = app('steam')->positive($row['foreign_amount']); $foreignAmount = app('steam')->positive($row['foreign_amount']);