fix upper text
This commit is contained in:
@@ -11,6 +11,7 @@ export default function ProductFactory(){
|
|||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
const pathname = location.pathname;
|
const pathname = location.pathname;
|
||||||
|
|
||||||
|
|
||||||
// Split the pathname by '/' and get the last element
|
// Split the pathname by '/' and get the last element
|
||||||
const lastPart = pathname.split('/').pop();
|
const lastPart = pathname.split('/').pop();
|
||||||
console.log(lastPart)
|
console.log(lastPart)
|
||||||
|
|||||||
Reference in New Issue
Block a user