Small code improv #3578

This commit is contained in:
James Cole
2020-07-27 07:08:29 +02:00
parent fade9ae6f9
commit 7017d33b87
2 changed files with 8 additions and 8 deletions

View File

@@ -137,8 +137,7 @@ class JavascriptController extends Controller
$currency = $repository->getAccountCurrency($account) ?? $currency;
}
$localeconv = app('amount')->getLocaleInfo();
$accounting = app('amount')->getJsConfig($localeconv);
$accounting = app('amount')->getJsConfig();
$accounting['frac_digits'] = $currency->decimal_places;
$pref = app('preferences')->get('language', config('firefly.default_language', 'en_US'));
/** @noinspection NullPointerExceptionInspection */