From f5e3a0001ce9f257cb341819c1f1fa38ec63a3c5 Mon Sep 17 00:00:00 2001 From: Erik Rasmussen Date: Fri, 15 Aug 2025 06:36:55 -0400 Subject: [PATCH] Show "0 customer requests" when no customer --- .../widgets/company-customer-request-count-widget.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/record/widgets/company-customer-request-count-widget.tsx b/src/record/widgets/company-customer-request-count-widget.tsx index 24e2cc9..de67a3d 100644 --- a/src/record/widgets/company-customer-request-count-widget.tsx +++ b/src/record/widgets/company-customer-request-count-widget.tsx @@ -41,15 +41,13 @@ const LoadingWidget = ({recordId}: {recordId: string}) => { Customer requests disabled Click to go to Linear settings - ) : customerNeeds !== null ? ( + ) : ( <> {name} {customerNeeds} customer request{customerNeeds === 1 ? "" : "s"} - ) : ( - {name} )} ) @@ -79,7 +77,7 @@ async function load(recordId: string) { ]) const domain = companyResult?.company?.domains?.[0] const name = companyResult?.company?.name ?? domain ?? "Unnamed Company" - const customerNeeds = customer ? await getCustomerNeedsCount(customer.id) : null + const customerNeeds = customer ? await getCustomerNeedsCount(customer.id) : 0 return { name, customerNeeds,