From ee292709f2fbbf59c45b8f6746f07286cde27e36 Mon Sep 17 00:00:00 2001 From: CyferShepard Date: Tue, 13 Aug 2024 21:54:17 +0200 Subject: [PATCH] removed linking for cards without Id --- src/pages/components/statCards/ItemStatComponent.jsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/pages/components/statCards/ItemStatComponent.jsx b/src/pages/components/statCards/ItemStatComponent.jsx index 30e1934..012ac2c 100644 --- a/src/pages/components/statCards/ItemStatComponent.jsx +++ b/src/pages/components/statCards/ItemStatComponent.jsx @@ -108,11 +108,17 @@ function ItemStatComponent(props) { ) : !item.Client && props.icon ? ( - + item.Id ? ( + + + {item.Name} + + + ) : ( {item.Name} - + ) ) : ( {item.Client}