From f6ba4e2527eb860769b4b20391067ddd65b8d06d Mon Sep 17 00:00:00 2001 From: gokhangunduz Date: Wed, 20 Dec 2023 17:40:17 +0300 Subject: [PATCH] feat(version): release 0.25.0 version --- package.json | 2 +- src/contexts/RobotContext.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index b33450d5..d0aa5ea6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ui", - "version": "0.24.9", + "version": "0.25.0", "private": true, "scripts": { "dev": "react-scripts start", diff --git a/src/contexts/RobotContext.tsx b/src/contexts/RobotContext.tsx index 0c7eca2a..cc224d1a 100644 --- a/src/contexts/RobotContext.tsx +++ b/src/contexts/RobotContext.tsx @@ -191,13 +191,13 @@ export default ({ children }: any) => { setRos(ros); - ros?.on("connection", function () { + rosClient?.on("connection", function () { isRosConnected === null && setIsRosConnected(true); }); - ros?.on("error", function (error) { + rosClient?.on("error", function (error) { isRosConnected === null && setIsRosConnected(false); }); - ros?.on("close", function () { + rosClient?.on("close", function () { isRosConnected === null && setIsRosConnected(false); });