Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Remove redundant assignment

Jakub Novak6d8a40cc9bf9
diff --git a/apps/dashboard/pages/settings.tsx b/apps/dashboard/pages/settings.tsx
index e956a9f8b..0533bbcf3 100644
--- a/apps/dashboard/pages/settings.tsx
+++ b/apps/dashboard/pages/settings.tsx
@@ -40,9 +40,7 @@ export const getServerSideProps: GetServerSideProps<Props> = async (ctx) => {
})
- if (apiKey) {
- apiKeyValue = apiKey.api_key
- } else {
+ if (!apiKey) {
const user = await prisma.auth_users.findUniqueOrThrow({
where: {
id: session.user.id,