Rename default to native.

This commit is contained in:
James Cole
2025-01-19 11:40:07 +01:00
parent 3766128cb8
commit ae366341cc
10 changed files with 29 additions and 27 deletions

View File

@@ -74,10 +74,10 @@ class IndexController extends Controller
// order so default and enabled are on top:
$collection = $collection->sortBy(
static function (TransactionCurrency $currency) {
$default = true === $currency->userGroupDefault ? 0 : 1;
$native = true === $currency->userGroupNative ? 0 : 1;
$enabled = true === $currency->userGroupEnabled ? 0 : 1;
return sprintf('%s-%s-%s', $default, $enabled, $currency->code);
return sprintf('%s-%s-%s', $native, $enabled, $currency->code);
}
);
$total = $collection->count();