From 1f0c5885c1e15e1271bd968358560abcb8bf32f5 Mon Sep 17 00:00:00 2001 From: Rohit Date: Sat, 1 Feb 2025 11:32:57 +0530 Subject: [PATCH] feat: rm set robot global state --- src/components/robot/RobotSettings.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/robot/RobotSettings.tsx b/src/components/robot/RobotSettings.tsx index 59b959b8..6ae59f89 100644 --- a/src/components/robot/RobotSettings.tsx +++ b/src/components/robot/RobotSettings.tsx @@ -55,7 +55,8 @@ interface RobotSettingsProps { export const RobotSettingsModal = ({ isOpen, handleStart, handleClose, initialSettings }: RobotSettingsProps) => { const { t } = useTranslation(); const [userEmail, setUserEmail] = useState(null); - const { recordingId, notify, robot, setRobot } = useGlobalInfoStore(); + const [robot, setRobot] = useState(null); + const { recordingId, notify } = useGlobalInfoStore(); useEffect(() => { if (isOpen) {