From 010bba475ca84d81a8f6ff28bdc6cf7eaa7455ff Mon Sep 17 00:00:00 2001 From: SJCoetz Date: Mon, 3 Aug 2026 10:53:54 +0200 Subject: [PATCH] fix(buyer-tasks): pass status + email_error into SendPoModal stub The SendPoModal renders its 'Resend' label and inline failure banner from purchaseOrder.status / email_error, but the buyer-tasks page stub didn't include either field. As a result, the modal showed 'Send' and an empty banner even when the underlying PO was mail_failed. Now the stub includes both so the operator sees the correct affordance. Co-authored-by: Orca --- src/components/buyer-tasks/buyer-tasks-page.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/buyer-tasks/buyer-tasks-page.tsx b/src/components/buyer-tasks/buyer-tasks-page.tsx index 354346c..b06ab28 100644 --- a/src/components/buyer-tasks/buyer-tasks-page.tsx +++ b/src/components/buyer-tasks/buyer-tasks-page.tsx @@ -218,6 +218,8 @@ export function BuyerTasksPage() { purchaseOrder={{ id: sendPoFor.purchaseOrderId ?? "", po_number: sendPoFor.poNumber ?? "", + status: sendPoFor.poStatus ?? undefined, + email_error: sendPoFor.emailError ?? undefined, expand: { supplier: { email: sendPoFor.supplierEmail ?? "",