File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/features/Overview/ShredsProgression Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ import type { AlignedData } from "uplot";
1111import { xRangeMs } from "./const" ;
1212import { shredsProgressionPlugin } from "./shredsProgressionPlugin" ;
1313import { useRafLoop } from "react-use" ;
14+ import { useAtomValue } from "jotai" ;
15+ import { ClientEnum } from "../../../api/entities" ;
16+ import { clientAtom } from "../../../atoms" ;
1417
1518const 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" >
You can’t perform that action at this time.
0 commit comments