fix operator order for pc_amount bug

This commit is contained in:
R1DEN
2026-02-23 11:54:48 +02:00
parent ed3f4f62ee
commit e43a188af8
@@ -388,7 +388,7 @@ class TransactionGroupTransformer extends AbstractTransformer
}
// set primary amount to the normal amount if the currency matches.
if ($transaction['primary_currency']['id'] ?? null === $transaction['currency_id']) {
if (($transaction['primary_currency']['id'] ?? null) === (string) $transaction['currency_id']) {
$transaction['pc_amount'] = $amount;
}