Skip to content

Commit

Permalink
Merge branch 'feat/getuser' of https://github.com/weni-ai/vtex-webapp
Browse files Browse the repository at this point in the history
…into staging
  • Loading branch information
acnormun committed Feb 7, 2025
2 parents 604cf28 + 4085671 commit b2c0892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/agent.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export async function setAgentBuilder(payload: any, project_uuid: string, token:
store.dispatch(setAgentLoading(false))
console.log(response)

if (!response.ok) {
return { success: false, error: response?.message || 'error creating agent' };
if (response.text !== 'OK') {
return { success: false, error: response?.message || 'Erro ao criar agente' };
}
return { success: true, data: response };
}

0 comments on commit b2c0892

Please sign in to comment.