Skip to content

Commit 8a4c7bf

Browse files
Merge pull request #58 from michielgerritsen/release-week-22-2
Release
2 parents 2faa7e2 + 45bdc63 commit 8a4c7bf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"require": {
1010
"magento/framework": "*",
11-
"hyva-themes/magento2-hyva-checkout": "^1.3",
11+
"hyva-themes/magento2-hyva-checkout": "^1.3.1",
1212
"mollie/magento2": ">=2.33.0"
1313
},
1414
"autoload": {

src/Mollie_HyvaCheckout/Observer/SalesQuoteCollectTotalsBefore/SetDefaultSelectedPaymentMethod.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ public function execute(Observer $observer): void
5050
/** @var Quote $quote */
5151
$quote = $observer->getData('quote');
5252

53-
// Don't override if a payment method is already set.
54-
if ($this->quoteHasActivePaymentMethod($quote)) {
53+
// Don't override if the quote isn't available yet or if a payment method is already set.
54+
if (!$quote->getId() || $this->quoteHasActivePaymentMethod($quote)) {
5555
return;
5656
}
5757

0 commit comments

Comments
 (0)