Skip to content

Commit

Permalink
Merge pull request #15 from sprankhub/patch-1
Browse files Browse the repository at this point in the history
Fix missing root tag error
  • Loading branch information
Tjitse-E authored Apr 16, 2024
2 parents a0abb18 + c724c4d commit 40331e3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions view/frontend/templates/magewire/create-account.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,9 @@
/** @var \Vendic\HyvaCheckoutCreateAccount\Magewire\CreateAccount $magewire */
/** @var \Vendic\HyvaCheckoutCreateAccount\ViewModel\GuestChecker $guestCheckerViewModel */
$guestCheckerViewModel = $viewModels->require(\Vendic\HyvaCheckoutCreateAccount\ViewModel\GuestChecker::class);

if (!$guestCheckerViewModel->isCustomerGuest()) {
return;
}

?>
<div>
<?php if (!$magewire->accountExists): ?>
<?php if ($guestCheckerViewModel->isCustomerGuest() && !$magewire->accountExists): ?>
<div class="flex gap-x-4">
<div class="flex items-center">
<?= $block->getChildHtml('checkbox') ?>
Expand Down

0 comments on commit 40331e3

Please sign in to comment.