diff --git a/solvway-admin-portal/app/audit-log/page.tsx b/solvway-admin-portal/app/audit-log/page.tsx
index afb0b44..3004c23 100644
--- a/solvway-admin-portal/app/audit-log/page.tsx
+++ b/solvway-admin-portal/app/audit-log/page.tsx
@@ -53,7 +53,7 @@ function AuditLogContent() {
const cut = (text: string | null | undefined, max = "max-w-40") => {text};
const columns = useMemo[]>(
() => [
- ...(showCompanyColumn ? [{ id: "company", accessorFn: (r: AuditEvent) => codeOf(r.companyId ?? 0), header: t("Company"), enableSorting: false } as ColumnDef] : []),
+ ...(showCompanyColumn ? [{ id: "company", cell: ({ row }) => codeOf(row.original.companyId ?? 0), header: t("Company"), enableSorting: false } as ColumnDef] : []),
{ id: "time", header: t("LsTime"), enableSorting: false, cell: ({ row }) => {formatDate(row.original.occurredAt)} },
{ id: "actor", header: t("AuditWho"), enableSorting: false, cell: ({ row }) => cut(row.original.actor, "max-w-32") },
{ id: "module", header: t("AuditModule"), enableSorting: false, cell: ({ row }) => (row.original.module ? t(row.original.module) : "—") },
diff --git a/solvway-admin-portal/app/companyScope.latecodes.test.tsx b/solvway-admin-portal/app/companyScope.latecodes.test.tsx
new file mode 100644
index 0000000..574ad13
--- /dev/null
+++ b/solvway-admin-portal/app/companyScope.latecodes.test.tsx
@@ -0,0 +1,54 @@
+import { render, screen } from "@testing-library/react";
+import { describe, it, expect, vi, beforeEach } from "vitest";
+
+// The companies list usually arrives after the first page of rows; the Company column must still fill in.
+const mocks = vi.hoisted(() => ({
+ listAdminEvents: vi.fn(),
+ listEmails: vi.fn(),
+ searchAuditLog: vi.fn(),
+ useAdminAuth: vi.fn(),
+ useCompanyScope: vi.fn(),
+}));
+vi.mock("@/app/lib/services/adminEvents", async (i) => ({ ...(await i