diff --git a/components/gb-live/icons/cables/cable.tsx b/components/gb-live/icons/cables/cable.tsx index ab3158a..f459075 100644 --- a/components/gb-live/icons/cables/cable.tsx +++ b/components/gb-live/icons/cables/cable.tsx @@ -25,7 +25,8 @@ export const Cable: React.FC = ({ from, to, width, - cycleSeconds + cycleSeconds, + isExport }) => { const { gestureMode } = useContext(MapContext); const t = useClock(); @@ -43,10 +44,6 @@ export const Cable: React.FC = ({ return modulusRotationFraction; }); - const isExport = React.useMemo( - () => cycleSeconds !== null && cycleSeconds < 0, - [cycleSeconds] - ); const cx = useDerivedValue(() => isExport ? from.x + dims.x * progress.value : to.x - dims.x * progress.value ); diff --git a/components/gb-live/svg-map/foreign-markets.tsx b/components/gb-live/svg-map/foreign-markets.tsx index 3c7b7b0..72f88fe 100644 --- a/components/gb-live/svg-map/foreign-markets.tsx +++ b/components/gb-live/svg-map/foreign-markets.tsx @@ -28,7 +28,7 @@ export const ForeignMarket: React.FC = (f) => { to={foreignPoint} cycleSeconds={cycleSeconds} width={width} - isExport={i.ac > 0} + isExport={i.ac < 0} key={`cable-${i.code}`} /> );