limit item stat component to 5

This commit is contained in:
CyferShepard
2024-05-18 22:27:06 +02:00
parent 94443f0297
commit 7c885fa5aa

View File

@@ -93,7 +93,7 @@ function ItemStatComponent(props) {
</div>
</Card.Header>
{props.data &&
props.data.map((item, index) => (
props.data.slice(0, 5).map((item, index) => (
<div className="d-flex justify-content-between stat-items" key={item.Id || index}>
<div className="d-flex justify-content-between" key={item.Id || index}>