From f5763ebd2584011512dc6cde0eac20fd5dca4d9a Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 24 Oct 2024 03:50:46 +0530 Subject: [PATCH] feat: notify on invalid robot --- src/components/molecules/RobotSettings.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/molecules/RobotSettings.tsx b/src/components/molecules/RobotSettings.tsx index 5ad60e90..7a6739a5 100644 --- a/src/components/molecules/RobotSettings.tsx +++ b/src/components/molecules/RobotSettings.tsx @@ -57,7 +57,7 @@ interface RobotSettingsProps { export const RobotSettingsModal = ({ isOpen, handleStart, handleClose, initialSettings }: RobotSettingsProps) => { const [robot, setRobot] = useState(null); - const { recordingId } = useGlobalInfoStore(); + const { recordingId, notify } = useGlobalInfoStore(); useEffect(() => { if (isOpen) { @@ -70,7 +70,7 @@ export const RobotSettingsModal = ({ isOpen, handleStart, handleClose, initialSe const robot = await getStoredRecording(recordingId); setRobot(robot); } else { - console.log(`Could not find robot`) + notify('error', 'Could not find robot details. Please try again.'); } }