Skip to content

Commit

Permalink
fix (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
umihai29 authored Feb 19, 2025
1 parent 23d4217 commit b6022d0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion src/domain/usecases/agents/update-agent-color.usecase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export class UpdateAgentColorUsecase {

if (res?.agent_Save) {
this.isSaving = false;
agent.put(res?.agent_Save);
}

span.end();
Expand Down
6 changes: 1 addition & 5 deletions src/domain/usecases/agents/update-agent-icon.usecase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ export class UpdateAgentIconUsecase {

agent.setIcon(selectedIcon);

const [res, err] = await this.service.saveAgent(agent);
const err = await this.service.saveAgent(agent);

if (err) {
console.error(
Expand All @@ -756,10 +756,6 @@ export class UpdateAgentIconUsecase {
return;
}

if (res?.agent_Save) {
agent.put(res.agent_Save);
}

this.isSaving = false;
span.end();
}
Expand Down

0 comments on commit b6022d0

Please sign in to comment.