From cce4f8e20cc2afbf71dff755c2e2bfef2affeabd Mon Sep 17 00:00:00 2001 From: Mazarin Date: Tue, 7 Nov 2023 16:27:16 -0500 Subject: [PATCH] Update app/Domains/Settings/ManageCurrencies/Web/ViewHelpers/CurrencyIndexViewHelper.php Co-authored-by: Alexis Saettler --- .../Web/ViewHelpers/CurrencyIndexViewHelper.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Domains/Settings/ManageCurrencies/Web/ViewHelpers/CurrencyIndexViewHelper.php b/app/Domains/Settings/ManageCurrencies/Web/ViewHelpers/CurrencyIndexViewHelper.php index 34c14d992e5..bec24ca0187 100644 --- a/app/Domains/Settings/ManageCurrencies/Web/ViewHelpers/CurrencyIndexViewHelper.php +++ b/app/Domains/Settings/ManageCurrencies/Web/ViewHelpers/CurrencyIndexViewHelper.php @@ -11,7 +11,9 @@ public static function data(Account $account, int $currencyId = null): Collectio { $currenciesCollection = $account->currencies() ->orderBy('code') - ->where('active', true)->get()->map(function ($currency) use ($currencyId) { + ->where('active', true) + ->get() + ->map(function ($currency) use ($currencyId) { return [ 'id' => $currency->id, 'name' => $currency->code,