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) {