We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 83ada0d + 6b7684e commit 951d02aCopy full SHA for 951d02a
src/components/Charts/StatDetails.tsx
@@ -34,21 +34,24 @@ const chartConfig = {
34
} satisfies ChartConfig;
35
36
interface Props {
37
- stats: DataObject | undefined;
+ stats: DataObject | undefined;
38
}
39
40
export function StatDetails(props: Props) {
41
const transformedData = useMemo(() => {
42
// Ensure stats is an object before processing
43
if (props.stats && typeof props.stats === "object") {
44
return Object.entries(props.stats)
45
- .filter(([key]) => key !== "githubId")
+ .filter(
46
+ ([key]) =>
47
+ key !== "githubId" && key !== "createdAt" && key !== "updatedAt"
48
+ )
49
.map(([key, value]) => ({
50
label: key,
51
value: value || 0,
52
}));
53
- return [];
54
+ return [];
55
}, [props.stats]);
56
57
return (
0 commit comments