From 61ae28ef4dde0c2e0fe2d7a9f0ab872e50ec6704 Mon Sep 17 00:00:00 2001 From: Rohit Date: Thu, 30 Jan 2025 23:26:26 +0530 Subject: [PATCH] feat: globally set robot state --- src/components/robot/RobotSettings.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/robot/RobotSettings.tsx b/src/components/robot/RobotSettings.tsx index fdbf90e2..59b959b8 100644 --- a/src/components/robot/RobotSettings.tsx +++ b/src/components/robot/RobotSettings.tsx @@ -54,9 +54,8 @@ interface RobotSettingsProps { export const RobotSettingsModal = ({ isOpen, handleStart, handleClose, initialSettings }: RobotSettingsProps) => { const { t } = useTranslation(); - const [robot, setRobot] = useState(null); const [userEmail, setUserEmail] = useState(null); - const { recordingId, notify } = useGlobalInfoStore(); + const { recordingId, notify, robot, setRobot } = useGlobalInfoStore(); useEffect(() => { if (isOpen) {