From e3c7f1002f1fcc45964ad9f539993f31252925c1 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 15 Dec 2024 20:40:31 -0500 Subject: [PATCH] fix upper text --- src/component/product/ProductFactory.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/component/product/ProductFactory.jsx b/src/component/product/ProductFactory.jsx index a57d678..9efeea5 100644 --- a/src/component/product/ProductFactory.jsx +++ b/src/component/product/ProductFactory.jsx @@ -11,6 +11,7 @@ export default function ProductFactory(){ const location = useLocation(); const pathname = location.pathname; + // Split the pathname by '/' and get the last element const lastPart = pathname.split('/').pop(); console.log(lastPart)