Skip to content

Commit 4d7be93

Browse files
committed
GraphQl-309: [Checkout] Checkout Agreements
1 parent c1c1dc0 commit 4d7be93

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/code/Magento/CheckoutAgreementsGraphQl/Model/Resolver/CheckoutAgreements.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function resolve(
8383
AgreementInterface::CHECKBOX_TEXT => $checkoutAgreement->getCheckboxText(),
8484
AgreementInterface::IS_HTML => $checkoutAgreement->getIsHtml(),
8585
AgreementInterface::MODE =>
86-
AgreementModeOptions::MODE_AUTO === $checkoutAgreement->getMode() ? 'AUTO' : 'MANUAL',
86+
AgreementModeOptions::MODE_AUTO === (int)$checkoutAgreement->getMode() ? 'AUTO' : 'MANUAL',
8787
];
8888
}
8989
return $checkoutAgreementData;

composer.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)