diff --git a/src/contexts/RobotContext.tsx b/src/contexts/RobotContext.tsx index 98b6ac9b..ed763204 100644 --- a/src/contexts/RobotContext.tsx +++ b/src/contexts/RobotContext.tsx @@ -315,7 +315,7 @@ export default ({ children }: any) => { }, 500); } - function handleForceReloadRobotPage() { + function handleResetRobot() { setResponseRobot(undefined); setResponseBuildManager(undefined); setResponseLaunchManagers(undefined); @@ -341,7 +341,7 @@ export default ({ children }: any) => { isSettedCookie, setIsSettedCookie, handleForceUpdate, - handleForceReloadRobotPage, + handleResetRobot, }} > {children} diff --git a/src/hooks/useRobot.tsx b/src/hooks/useRobot.tsx index fcd7d2af..70dfcb2a 100644 --- a/src/hooks/useRobot.tsx +++ b/src/hooks/useRobot.tsx @@ -15,7 +15,7 @@ interface IuseRobot { isSettedCookie: boolean | null; setIsSettedCookie: any; handleForceUpdate: any; - handleForceReloadRobotPage: any; + handleResetRobot: () => void; } const useRobot = () => {