Skip to content

Commit

Permalink
Update app/Domains/Settings/ManageCurrencies/Web/ViewHelpers/Currency…
Browse files Browse the repository at this point in the history
…IndexViewHelper.php

Co-authored-by: Alexis Saettler <[email protected]>
  • Loading branch information
djaiss and asbiin authored Nov 7, 2023
1 parent fe799c0 commit cce4f8e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cce4f8e

Please sign in to comment.