sfdsf
This commit is contained in:
@@ -1380,6 +1380,19 @@ final class AnalyticsService
|
||||
return null;
|
||||
}
|
||||
|
||||
$reportedTotal = is_numeric($snapshot['total_value_amount'] ?? null)
|
||||
? (float) $snapshot['total_value_amount']
|
||||
: null;
|
||||
$reportedCurrency = strtoupper(trim((string) ($snapshot['total_value_currency'] ?? '')));
|
||||
if ($reportedTotal !== null && $reportedTotal >= 0 && $reportedCurrency !== '') {
|
||||
$convertedTotal = $reportedCurrency === $target
|
||||
? $reportedTotal
|
||||
: $this->convertAmount($reportedTotal, $reportedCurrency, $target, $fxContext);
|
||||
if ($convertedTotal !== null) {
|
||||
return $convertedTotal;
|
||||
}
|
||||
}
|
||||
|
||||
$balances = is_array($snapshot['balances_json'] ?? null) ? $snapshot['balances_json'] : [];
|
||||
if ($balances === []) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user