Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions components/companies/CompanyProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,21 +120,21 @@ export function CompanyProfile({ company, isOwner = false, className }: CompanyP
<div className="grid grid-cols-3 gap-4 text-center">
<div className="space-y-1">
<p className="text-2xl font-bold text-primary">
{company.total_events}
{company.total_events || 0}
</p>
<p className="text-xs text-muted-foreground">Events Hosted</p>
</div>
<div className="space-y-1">
<p className="text-2xl font-bold text-primary">
{company.total_hackathons}
{company.total_hackathons || 0}
</p>
<p className="text-xs text-muted-foreground">Hackathons</p>
</div>
<div className="space-y-1">
<p className="text-2xl font-bold text-primary">
{company.total_participants}
{company.total_registrations || 0}
</p>
<p className="text-xs text-muted-foreground">Participants</p>
<p className="text-xs text-muted-foreground">Registrations</p>
</div>
</div>
</CardContent>
Expand Down
1 change: 1 addition & 0 deletions types/company.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export interface Company {
total_events: number
total_hackathons: number
total_participants: number
total_registrations: number
}

export interface CompanyAddress {
Expand Down
Loading