Skip to content

Commit 82abeeb

Browse files
committed
Fix: Prevent Follow Line circuit map from rendering before exercise connection
1 parent 35d73ed commit 82abeeb

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

exercises/follow_line/frontend/WebGUI.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,17 @@ const WebGUI = () => {
100100
{lapTime} s
101101
</label>
102102
)}
103-
<div className="overlay" id="circuit-aerial">
104-
<img src={circuitImg} alt="" id="circuit-img" />
105-
{carPose && (
106-
<div
107-
id="circuit-car-pos"
108-
style={{ top: carPose[1], left: carPose[0] }}
109-
/>
110-
)}
111-
</div>
103+
{image && (
104+
<div className="overlay" id="circuit-aerial">
105+
<img src={circuitImg} alt="" id="circuit-img" />
106+
{carPose && (
107+
<div
108+
id="circuit-car-pos"
109+
style={{ top: carPose[1], left: carPose[0] }}
110+
/>
111+
)}
112+
</div>
113+
)}
112114
</WebGUIContainer>
113115
);
114116
};

0 commit comments

Comments
 (0)