Skip to content

Commit 62a22b9

Browse files
authored
Add region_code to optional attributes (#1038)
1 parent 43f67df commit 62a22b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/js/components/Checkout/Checkout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export default {
170170
),
171171
)
172172
Object.entries(this.checkout.shipping_address).forEach(([key, val]) => {
173-
if (!val && !['region_id', 'customer_address_id', 'same_as_billing'].concat(optionalFields).includes(key)) {
173+
if (!val && !['region_id', 'region_code', 'customer_address_id', 'same_as_billing'].concat(optionalFields).includes(key)) {
174174
Notify(key + ' cannot be empty', 'warning')
175175
validated = false
176176
}

0 commit comments

Comments
 (0)