Skip to content

Commit ae63e57

Browse files
authored
Fix incorrect flash message type on invoice resend action (#386)
When resending an invoice from the admin, the error flash message is not currently displayed
2 parents d79de6c + 8e2e67f commit ae63e57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ui/Action/Admin/ResendInvoiceAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function __invoke(string $id): Response
5454
try {
5555
$this->invoiceEmailSender->sendInvoiceEmail($invoice, $customer->getEmail());
5656
} catch (\Exception $exception) {
57-
$this->getFlashBag()->add('failure', $exception->getMessage());
57+
$this->getFlashBag()->add('error', $exception->getMessage());
5858

5959
return new RedirectResponse(
6060
$this->urlGenerator->generate('sylius_admin_order_show', ['id' => $order->getId()]),

0 commit comments

Comments
 (0)