From 56487c3a3362df46a9cd35b1c7b4229b19815fff Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 10 Aug 2025 06:54:04 +0200 Subject: [PATCH] Fix equation. --- app/Support/Steam.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Support/Steam.php b/app/Support/Steam.php index 0148adb468..aa43abf3b4 100644 --- a/app/Support/Steam.php +++ b/app/Support/Steam.php @@ -515,11 +515,11 @@ class Steam if (null === $preference) { $singleton->setPreference($key, $currency); } - if ($currency->id === $primary->id) { - return $amount; + $current = $amount; + if ($currency->id !== $primary->id) { + $current = $converter->convert($currency, $primary, $date, $amount); + Log::debug(sprintf('Convert %s %s to %s %s', $currency->code, $amount, $primary->code, $current)); } - $current = $converter->convert($currency, $primary, $date, $amount); - Log::debug(sprintf('Convert %s %s to %s %s', $currency->code, $amount, $primary->code, $current)); $total = bcadd($current, $total); }