Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Update apps/docs/src/components/Dashboard/AccountSelector.tsx

Erik Kaunismäki36ab841cd7f5
diff --git a/apps/docs/src/components/Dashboard/AccountSelector.tsx b/apps/docs/src/components/Dashboard/AccountSelector.tsx
index 1dfdb10b6..e90ebc4bb 100644
--- a/apps/docs/src/components/Dashboard/AccountSelector.tsx
+++ b/apps/docs/src/components/Dashboard/AccountSelector.tsx
@@ -25,13 +25,13 @@ export const AccountSelector = ({ teams, user, currentTeam, setCurrentTeam, setT
return
}
- const data = await res.json()
+ const team = await res.json()
toast({
- title: `Team ${data.team.name} created`,
+ title: `Team ${team.name} created`,
})
- setTeams([...teams, data.team])
+ setTeams([...teams, team])
}
return(