Skip to content

Commit 951d02a

Browse files
authored
Merge pull request #32 from Octasol/hotfix/profile
Hotfix/profile
2 parents 83ada0d + 6b7684e commit 951d02a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/components/Charts/StatDetails.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,24 @@ const chartConfig = {
3434
} satisfies ChartConfig;
3535

3636
interface Props {
37-
stats: DataObject | undefined;
37+
stats: DataObject | undefined;
3838
}
3939

4040
export function StatDetails(props: Props) {
4141
const transformedData = useMemo(() => {
4242
// Ensure stats is an object before processing
4343
if (props.stats && typeof props.stats === "object") {
4444
return Object.entries(props.stats)
45-
.filter(([key]) => key !== "githubId")
45+
.filter(
46+
([key]) =>
47+
key !== "githubId" && key !== "createdAt" && key !== "updatedAt"
48+
)
4649
.map(([key, value]) => ({
4750
label: key,
4851
value: value || 0,
4952
}));
5053
}
51-
return [];
54+
return [];
5255
}, [props.stats]);
5356

5457
return (

0 commit comments

Comments
 (0)