diff --git a/themes/default/account/address.blade.php b/themes/default/account/address.blade.php index 24ac995c..d3e8172d 100644 --- a/themes/default/account/address.blade.php +++ b/themes/default/account/address.blade.php @@ -201,6 +201,10 @@ hload: true }).then((res) => { this.source.zones = res.data.zones; + + if (!res.data.zones.some(e => e.id == this.form.zone_id)) { + this.form.zone_id = ''; + } }) }, } diff --git a/themes/default/checkout.blade.php b/themes/default/checkout.blade.php index fa4bd4ea..a1ddfea1 100644 --- a/themes/default/checkout.blade.php +++ b/themes/default/checkout.blade.php @@ -350,6 +350,10 @@ $http.get(`/countries/${e}/zones`).then((res) => { this.source.zones = res.data.zones; + + if (!res.data.zones.some(e => e.id == this.dialogAddress.form.zone_id)) { + this.dialogAddress.form.zone_id = ''; + } }) },