Skip to content

Commit 3f41657

Browse files
committed
fix: update workshop registrants
1 parent 062023e commit 3f41657

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/app/(app)/workshop/[workshopId]/_components/workshop-registrants.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ interface WorkshopRegistrantsProps {
66
}
77

88
export function WorkshopRegistrants({ registrants }: WorkshopRegistrantsProps) {
9+
if (!registrants.length) {
10+
return
11+
}
12+
913
const displayedRegistrants = registrants.slice(0, 4)
1014
const extraRegistrantsCount = registrants.length - displayedRegistrants.length
1115

src/app/(app)/workshop/[workshopId]/loading.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default function WorkshopLoading() {
5252
</div>
5353

5454
<div className="flex w-full justify-end">
55-
<Skeleton className="h-9 w-32" />
55+
<Skeleton className="h-9 w-16" />
5656
</div>
5757
</Shell>
5858
)

0 commit comments

Comments
 (0)