diff --git a/src/Controller/PayPalOrderItemController.php b/src/Controller/PayPalOrderItemController.php index 545fa3c6..40fe83b4 100644 --- a/src/Controller/PayPalOrderItemController.php +++ b/src/Controller/PayPalOrderItemController.php @@ -39,7 +39,7 @@ public function createFromProductDetailsAction(Request $request): Response $form = $form->handleRequest($request); - if (!$form->isValid()) { + if ($form->isSubmitted() && !$form->isValid()) { return new RedirectResponse((string) $request->headers->get('referer')); }