Skip to content

Scheduling infrastructure for absolutely everyone.

Fixes global console error (#4825)

Alex van Andeld43d8700d056
diff --git a/packages/trpc/server/routers/viewer.tsx b/packages/trpc/server/routers/viewer.tsx
index a279ac6e974..2d1abea80a4 100644
--- a/packages/trpc/server/routers/viewer.tsx
+++ b/packages/trpc/server/routers/viewer.tsx
@@ -764,7 +764,7 @@ const loggedInViewerRouter = createProtectedRouter()
const apps = getApps(credentials);
const appFromDb = apps.find((app) => app.credential?.appId === appId);
if (!appFromDb) {
- return appFromDb;
+ return null;
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { credential: _, credentials: _1, ...app } = appFromDb;