From c724c4dade22ed4a581f2a3f326a5a93e08a0bb0 Mon Sep 17 00:00:00 2001 From: Simon Sprankel Date: Tue, 16 Apr 2024 08:46:38 +0200 Subject: [PATCH] Fix missing root tag error --- view/frontend/templates/magewire/create-account.phtml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/view/frontend/templates/magewire/create-account.phtml b/view/frontend/templates/magewire/create-account.phtml index 586b21c..fcdece2 100644 --- a/view/frontend/templates/magewire/create-account.phtml +++ b/view/frontend/templates/magewire/create-account.phtml @@ -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; -} - ?>
- accountExists): ?> + isCustomerGuest() && !$magewire->accountExists): ?>
getChildHtml('checkbox') ?>