Skip to content

Firefly III: a personal finances manager

Fixed a bug in the display of the current currency code.

James Cole4660cf2ad510
diff --git a/app/Support/Amount.php b/app/Support/Amount.php
index db7aecb52c..205db6b61e 100644
--- a/app/Support/Amount.php
+++ b/app/Support/Amount.php
@@ -151,14 +151,10 @@ class Amount
if (defined('FFCURRENCYCODE')) {
return FFCURRENCYCODE;
}
- if (Cache::has('FFCURRENCYCODE')) {
- define('FFCURRENCYCODE', Cache::get('FFCURRENCYCODE'));
-
- return FFCURRENCYCODE;
- }
$currencyPreference = Prefs::get('currencyPreference', 'EUR');
+
$currency = TransactionCurrency::whereCode($currencyPreference->data)->first();
if ($currency) {