Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

chore: remove explanatory comments

sidgaikwadf0807f2e0b76
diff --git a/apps/erp/app/routes/api+/passkey.authenticate.verify.ts b/apps/erp/app/routes/api+/passkey.authenticate.verify.ts
index 7b1084efea..667ae7caa4 100644
--- a/apps/erp/app/routes/api+/passkey.authenticate.verify.ts
+++ b/apps/erp/app/routes/api+/passkey.authenticate.verify.ts
@@ -111,12 +111,6 @@ export async function action({ request }: ActionFunctionArgs) {
});
}
- // Only finalize the active company for single-company users. Multi-company
- // users must actively choose: we leave the companyId cookie unset and let
- // x+/_layout bounce them to the picker — its presence is the "has chosen
- // this session" marker. Mirrors the magic-link callback contract. If we
- // can't determine the company count, fail rather than finalize an
- // arbitrary company (which would skip the picker for multi-company users).
const employeeCompanies = await getEmployeeCompanies(
serviceRole,
credRow.userId