From e6e3afac5638469347395510fa2a68783aa081bc Mon Sep 17 00:00:00 2001 From: Lorentz Date: Mon, 16 Feb 2026 12:19:18 +0000 Subject: [PATCH] fix: add explicit type to permissions.ts find callback parameter --- src/lib/permissions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/permissions.ts b/src/lib/permissions.ts index a1529bb..abb432b 100644 --- a/src/lib/permissions.ts +++ b/src/lib/permissions.ts @@ -66,7 +66,7 @@ export async function getQuestSession(): Promise { // If no active company in session, use the first available active company if (!activeCompanyId && authUser.quest_user.companies.length > 0) { const activeCompany = authUser.quest_user.companies.find( - (c) => c.company.is_active + (c: (typeof authUser.quest_user.companies)[0]) => c.company.is_active ); if (activeCompany) { activeCompanyId = activeCompany.company.id;