From 17b8adbab893c3906c98b1f6f8a22b4d8b29ae96 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Fri, 3 May 2024 01:41:18 +0300 Subject: [PATCH] add numbers to stats list --- pages/cart/publishers/stats.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pages/cart/publishers/stats.tsx b/pages/cart/publishers/stats.tsx index 70d503d..b5fa9a0 100644 --- a/pages/cart/publishers/stats.tsx +++ b/pages/cart/publishers/stats.tsx @@ -152,13 +152,10 @@ function ContactsPage({ allPublishers }) { - {filteredPublishers.map((pub) => { - // Find the publisher in the publishers collection to access statistics - //const pub = publishers.find(publisher => publisher.id === allPub.id); - + {filteredPublishers.map((pub, i) => { return ( - {pub.firstName} {pub.lastName} + {i + 1}. {pub.firstName} {pub.lastName} {/* Display statistics if publisher is found */} {pub ? ( <> @@ -184,7 +181,6 @@ function ContactsPage({ allPublishers }) { ) : ( <> -