From a977c567ceb1284d2273d0cc7441194ebb35d9c5 Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 6 Feb 2025 18:28:42 +0100 Subject: [PATCH] Fix #9787 --- app/Support/Twig/General.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Support/Twig/General.php b/app/Support/Twig/General.php index 8f88e69cb3..f43b8f07d4 100644 --- a/app/Support/Twig/General.php +++ b/app/Support/Twig/General.php @@ -72,6 +72,7 @@ class General extends AbstractExtension $default = Amount::getNativeCurrency(); $convertToNative = Amount::convertToNative(); $useNative = $convertToNative && $default->id !== $currency->id; + $currency = null === $currency ? $default : $currency; $strings = []; foreach ($info as $key => $balance) { if ('balance' === $key) {