Skip to content

Commit 699a00e

Browse files
committed
Skip case fixing
Accidentally broke it when changing to use the singleton but nothing seems to do weird thing so it's probably fine.
1 parent 0d5a840 commit 699a00e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app/Models/User.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -2322,12 +2322,8 @@ public function isValid()
23222322
if ($countryAcronym === null) {
23232323
$this->country_acronym = Country::UNKNOWN;
23242324
} elseif ($this->isDirty('country_acronym') && $countryAcronym !== Country::UNKNOWN) {
2325-
$country = app('countries')->byCode($countryAcronym);
2326-
if ($country === null) {
2325+
if (app('countries')->byCode($countryAcronym) === null) {
23272326
$this->validationErrors()->add('country', '.invalid_country');
2328-
} else {
2329-
// ensure matching case
2330-
$this->country_acronym = $country->getKey();
23312327
}
23322328
}
23332329

0 commit comments

Comments
 (0)