Skip to content

Commit

Permalink
Fix missing root tag error
Browse files Browse the repository at this point in the history
  • Loading branch information
sprankhub committed Apr 16, 2024
1 parent a0abb18 commit c724c4d
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 c724c4d

Please sign in to comment.