diff --git a/frontend/components/MainPage/header/AgentButton/AgentNotRunningButton.tsx b/frontend/components/MainPage/header/AgentButton/AgentNotRunningButton.tsx index 15320c006..e2aca40a9 100644 --- a/frontend/components/MainPage/header/AgentButton/AgentNotRunningButton.tsx +++ b/frontend/components/MainPage/header/AgentButton/AgentNotRunningButton.tsx @@ -212,7 +212,7 @@ const useServiceDeployment = () => { let middlewareServiceResponse; if (!service) { try { - return ServicesService.createService({ + middlewareServiceResponse = await ServicesService.createService({ stakingProgramId: selectedStakingProgramId, serviceTemplate, deploy: false, // TODO: deprecated will remove