Skip to content

Commit

Permalink
Correct variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
Mesuva committed Oct 4, 2024
1 parent 7c05460 commit 15632c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CommunityStore/Utilities/StateProvince.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ public function getStates()
$ret .= '<option {selected} value=""></option>';
$hasSelectedState = false;

foreach ($list as $code => $country) {
foreach ($list as $code => $state) {
if (!empty($selectedState) && $code == $selectedState) {
$ret .= "<option selected value='{$code}'>{$country}</option>";
$ret .= "<option selected value='{$code}'>{$state}</option>";
$hasSelectedState = true;
} else {
$ret .= "<option value='{$code}'>{$country}</option>";
$ret .= "<option value='{$code}'>{$state}</option>";
}
}

Expand Down

0 comments on commit 15632c1

Please sign in to comment.