@wikala/spmkt 2.12.0 → 2.12.1

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.
@@ -329,17 +329,20 @@ export default {
329
329
  },
330
330
 
331
331
  placeOrder() {
332
- console.log('acceptTOS', this.acceptTOS)
333
- this.acceptTOSError = ''
334
- if(!this.acceptTOS) {
335
- animateCSS('.cart-accept-tos', 'pulse')
336
- this.acceptTOSError = this.$t('cart.acceptTOSError')
337
- return false
338
- }
339
332
  if(!this.paymentMethod.id) {
340
333
  this.paymentMethodError = true
341
334
  return
342
335
  }
336
+
337
+ if(this.initialState.acceptTOSAtCheckout) {
338
+ this.acceptTOSError = ''
339
+ if(!this.acceptTOS) {
340
+ animateCSS('.cart-accept-tos', 'pulse')
341
+ this.acceptTOSError = this.$t('cart.acceptTOSError')
342
+ return false
343
+ }
344
+ }
345
+
343
346
  if (this.statePaymentMethod.type === 'offline') {
344
347
  this.submitPayment()
345
348
  return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikala/spmkt",
3
- "version": "2.12.0",
3
+ "version": "2.12.1",
4
4
  "private": false,
5
5
  "description": "supermarket",
6
6
  "scripts": {