File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
app/(landing)/hackathons/[slug]/components/tabs Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ const HackathonTabs = ({ sidebar }: HackathonTabsProps) => {
3131 const {
3232 currentHackathon,
3333 winners,
34- submissions,
3534 loading : generalLoading ,
3635 } = useHackathonData ( ) ;
3736 const { data : announcements = [ ] , isLoading : announcementsLoading } =
@@ -91,7 +90,7 @@ const HackathonTabs = ({ sidebar }: HackathonTabsProps) => {
9190 {
9291 id : 'submissions' ,
9392 label : 'Submissions' ,
94- badge : submissions . filter ( p => p . status === 'SHORTLISTED' ) . length ,
93+ badge : currentHackathon . _count ?. submissions ?? 0 ,
9594 } ,
9695 {
9796 id : 'discussions' ,
@@ -140,7 +139,6 @@ const HackathonTabs = ({ sidebar }: HackathonTabsProps) => {
140139 } , [
141140 currentHackathon ,
142141 winners ,
143- submissions ,
144142 discussionComments . pagination . totalItems ,
145143 announcements ,
146144 announcementsLoading ,
You can’t perform that action at this time.
0 commit comments