Skip to content

Commit 9d55b9b

Browse files
committed
Write begin as an explicit case for action animation switch
1 parent b7e508e commit 9d55b9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tabs/RobotMaze/components/RobotSimulation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ const RobotSimulation : React.FC<MapProps> = ({
252252
case 'sensor':
253253
animationPauseUntil.current = Date.now() + 500;
254254
break;
255-
default:
255+
case 'begin':
256256
robot.current = Object.assign({}, {radius: robot.current.radius}, target);
257257
}
258258

0 commit comments

Comments
 (0)