Skip to content

Commit

Permalink
fix: update workshop registrants
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphico committed Jun 24, 2024
1 parent 062023e commit 3f41657
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ interface WorkshopRegistrantsProps {
}

export function WorkshopRegistrants({ registrants }: WorkshopRegistrantsProps) {
if (!registrants.length) {
return
}

const displayedRegistrants = registrants.slice(0, 4)
const extraRegistrantsCount = registrants.length - displayedRegistrants.length

Expand Down
2 changes: 1 addition & 1 deletion src/app/(app)/workshop/[workshopId]/loading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function WorkshopLoading() {
</div>

<div className="flex w-full justify-end">
<Skeleton className="h-9 w-32" />
<Skeleton className="h-9 w-16" />
</div>
</Shell>
)
Expand Down

0 comments on commit 3f41657

Please sign in to comment.