fix(cart): hide Edit when there is nothing to configure
Drops the mount() change and its test, as suggested in review.
This commit is contained in:
1 parent
21685acdc9
commit
0b257a4761
3 files changed
+3
-23
No files matched your search
@@ -92,7 +92,7 @@ class Checkout extends Component
|
||||
|
||||
// As there is only one plan, config options and checkout config, we can directly call the checkout method to avoid confusion
|
||||
// This is only done when the user is not editing the cart item
|
||||
if ($this->product->plans->count() === 1 && empty($this->configOptions) && empty($this->checkoutConfig) && !$this->cartProductKey) {
|
||||
if ($this->product->plans->count() === 1 && empty($this->configOptions) && empty($this->checkoutConfig)) {
|
||||
$this->checkout();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user