diff --git a/components/companies/CompanyProfile.tsx b/components/companies/CompanyProfile.tsx index a45e0502..77bb653a 100644 --- a/components/companies/CompanyProfile.tsx +++ b/components/companies/CompanyProfile.tsx @@ -120,21 +120,21 @@ export function CompanyProfile({ company, isOwner = false, className }: CompanyP

- {company.total_events} + {company.total_events || 0}

Events Hosted

- {company.total_hackathons} + {company.total_hackathons || 0}

Hackathons

- {company.total_participants} + {company.total_registrations || 0}

-

Participants

+

Registrations

diff --git a/types/company.ts b/types/company.ts index 4ddaea5b..8e6f6665 100644 --- a/types/company.ts +++ b/types/company.ts @@ -42,6 +42,7 @@ export interface Company { total_events: number total_hackathons: number total_participants: number + total_registrations: number } export interface CompanyAddress {