Skip to content

Commit daa0d3e

Browse files
committed
github 32996 - code formatting and typecast region id to keep it compatible with previous regionUpdater implementation
1 parent 5d811c3 commit daa0d3e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/code/Magento/Customer/ViewModel/Address/RegionProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function __construct(
2828
$this->directoryRegionProvider = $directoryRegionProvider;
2929
}
3030

31-
public function getRegionJson() : string
31+
public function getRegionJson(): string
3232
{
3333
return $this->directoryRegionProvider->getRegionJson();
3434
}

app/code/Magento/Directory/Model/RegionProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct(
3636
$this->jsonSerializer = $jsonSerializer;
3737
}
3838

39-
public function getRegionJson() : string
39+
public function getRegionJson(): string
4040
{
4141
$regions = $this->getRegions();
4242
return $this->jsonSerializer->serialize($regions);

app/code/Magento/Directory/view/frontend/web/js/region-updater.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ define([
175175
$.each(regionsEntries, $.proxy(function (key, value) {
176176
regionData = value[1];
177177
regionId = regionData.id;
178-
this._renderSelectOption(regionList, regionId, regionData);
178+
this._renderSelectOption(regionList, regionId.toString(), regionData);
179179
}, this));
180180

181181
if (this.currentRegionOption) {

0 commit comments

Comments
 (0)