Skip to content

Commit d9893c5

Browse files
asuzuki-jumptradingjherrera-jump
authored andcommitted
fix: only show shreds progression for firedancer
1 parent 3d8a578 commit d9893c5

File tree

1 file changed

+7
-0
lines changed
  • src/features/Overview/ShredsProgression

1 file changed

+7
-0
lines changed

src/features/Overview/ShredsProgression/index.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ import type { AlignedData } from "uplot";
1111
import { xRangeMs } from "./const";
1212
import { shredsProgressionPlugin } from "./shredsProgressionPlugin";
1313
import { useRafLoop } from "react-use";
14+
import { useAtomValue } from "jotai";
15+
import { ClientEnum } from "../../../api/entities";
16+
import { clientAtom } from "../../../atoms";
1417

1518
const REDRAW_INTERVAL_MS = 40;
1619

@@ -46,6 +49,8 @@ export default function ShredsProgression({
4649
const uplotRef = useRef<uPlot>();
4750
const lastRedrawRef = useRef(0);
4851

52+
const client = useAtomValue(clientAtom);
53+
4954
const handleCreate = useCallback((u: uPlot) => {
5055
uplotRef.current = u;
5156
}, []);
@@ -121,6 +126,8 @@ export default function ShredsProgression({
121126
}
122127
});
123128

129+
if (client !== ClientEnum.Firedancer) return;
130+
124131
return (
125132
<Card>
126133
<Flex direction="column" gap="4">

0 commit comments

Comments
 (0)