From 7a4e98f6145eeb3425c48670484780a06cc903da Mon Sep 17 00:00:00 2001 From: devansh bawari Date: Wed, 18 Nov 2020 19:32:29 +0530 Subject: [PATCH] Minor Issue Fixed --- .../src/Resources/assets/js/UI/components/mini-cart.vue | 2 +- .../src/Resources/views/shop/checkout/cart/mini-cart.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/Webkul/Velocity/src/Resources/assets/js/UI/components/mini-cart.vue b/packages/Webkul/Velocity/src/Resources/assets/js/UI/components/mini-cart.vue index 39acf0c59..35fec88d7 100644 --- a/packages/Webkul/Velocity/src/Resources/assets/js/UI/components/mini-cart.vue +++ b/packages/Webkul/Velocity/src/Resources/assets/js/UI/components/mini-cart.vue @@ -122,7 +122,7 @@ }, checkMinimumOrder: function (e) { - if (! this.isMinimumOrderCompleted) { + if (! Boolean(this.isMinimumOrderCompleted)) { e.preventDefault(); window.showAlert(`alert-warning`, 'Warning', this.minimumOrderMessage); } diff --git a/packages/Webkul/Velocity/src/Resources/views/shop/checkout/cart/mini-cart.blade.php b/packages/Webkul/Velocity/src/Resources/views/shop/checkout/cart/mini-cart.blade.php index d54876e62..1369a4885 100644 --- a/packages/Webkul/Velocity/src/Resources/views/shop/checkout/cart/mini-cart.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/shop/checkout/cart/mini-cart.blade.php @@ -9,7 +9,7 @@ checkout-text="{{ __('shop::app.minicart.checkout') }}" checkout-url="{{ route('shop.checkout.onepage.index') }}" subtotal-text="{{ __('shop::app.checkout.cart.cart-subtotal') }}" - is-minimum-order-completed="{{ Cart::checkMinimumOrder() }}" + is-minimum-order-completed="{{ (bool) Cart::checkMinimumOrder() }}" minimum-order-message="{{ __('shop::app.checkout.cart.minimum-order-message', ['amount' => core()->currency($minimumOrderAmount)]) }}"> \ No newline at end of file