fix reveresed checks

This commit is contained in:
Alex Holliday committed 2026-04-29 12:03:23 -07:00
1 parent 20d27cb984
commit b2c3e08db3
2 files changed
+4 -4

No files matched your search

@@ -31,10 +31,10 @@ export const ThemedHeatmap = ({ checks, containerSx, cellSx }: Props) => {
const { t } = useTranslation();
const uiTimezone = useSelector((state: RootState) => state.ui.timezone);
const source = checks.slice(0, CELLS).reverse();
const source = checks.slice(-CELLS);
const padded: (CheckSnapshot | null)[] = [
...Array.from({ length: Math.max(0, CELLS - source.length) }, () => null),
...source,
...Array.from({ length: Math.max(0, CELLS - source.length) }, () => null),
];
return (