@wikala/spmkt 2.15.0 → 2.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -179,10 +179,9 @@ export default {
179
179
  if(!this.validate()) {
180
180
  return
181
181
  }
182
- //console.log('validate ok')
183
- this.scrollToElement('.cart-top')
184
182
  this.setGuestMode(true)
185
183
  this.setActiveStep(this.steps.delivery)
184
+ this.scrollToElement('.cart-top')
186
185
  },
187
186
 
188
187
  clearError(field) {
@@ -117,7 +117,6 @@ export default {
117
117
  await this.validateAddress(this.checkoutRequestData.shipping_address)
118
118
  this.addressValid = true
119
119
  this.$emit('addressValidation', true)
120
- this.scrollToElement('.delivery-method')
121
120
  } catch (e) {
122
121
  this.validationErrors = e.errors
123
122
  this.$buefy.toast.open({
@@ -136,6 +135,7 @@ export default {
136
135
  this.setBillingAddress(this.checkoutRequestData.shipping_address)
137
136
  try {
138
137
  await this.getAvailableDeliveryMethods(this.checkoutRequestData.shipping_address)
138
+ this.scrollToElement('.delivery-method')
139
139
  } catch (error) {
140
140
  this.addressValid = false
141
141
  this.$emit('addressValidation', false)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikala/spmkt",
3
- "version": "2.15.0",
3
+ "version": "2.16.0",
4
4
  "private": false,
5
5
  "description": "supermarket",
6
6
  "scripts": {