Skip to content

Commit 00e7269

Browse files
Production (#494)
* fix: fix prize teirs place * fix: fix prize teirs place * Pr 486 (#488) * feat: Implement comprehensive hackathon detail page with new header, sidebar, and tabbed content sections including teams, announcements, winners, participants, and resources. * fix: update coderabit * feat: Enhance hackathon team invitation flow, recruitment post management, and dynamic tab visibility. * feat: Integrate AuthModalProvider for authentication handling and enhance messaging features across hackathon components * fix: fix pagination issues in particiapants and submissions page for organizers * fix: remove any type --------- Co-authored-by: Collins Ikechukwu <collinschristroa@gmail.com> * Pr 486 (#490) * feat: Implement comprehensive hackathon detail page with new header, sidebar, and tabbed content sections including teams, announcements, winners, participants, and resources. * fix: update coderabit * feat: Enhance hackathon team invitation flow, recruitment post management, and dynamic tab visibility. * feat: Integrate AuthModalProvider for authentication handling and enhance messaging features across hackathon components * fix: fix pagination issues in particiapants and submissions page for organizers * fix: remove any type * fix: enhanced filtering for organizations * fix: fix coderabbit corrections --------- Co-authored-by: Collins Ikechukwu <collinschristroa@gmail.com> * fix: sync production with main changes --------- Co-authored-by: Collins Ikechukwu <collinschristroa@gmail.com>
1 parent bf339f8 commit 00e7269

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

hooks/hackathon/use-organizer-submissions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export function useOrganizerSubmissions(
7676
const currentPage = rawPag?.page || page;
7777
const limit = rawPag?.limit || pagination.limit || initialLimit;
7878
const total = rawPag?.total || 0;
79-
const totalPages = rawPag?.totalPages || Math.ceil(total / limit) || 1;
79+
const totalPages = Math.ceil(total / limit) || 1;
8080

8181
setSubmissions(list);
8282
setPagination({

hooks/use-hackathons.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,7 @@ export function useHackathons(
582582
const responsePage = pagination?.page || 1;
583583
const totalItems = pagination?.total || 0;
584584
const itemsPerPage = pagination?.limit || pageSize;
585-
const totalPages =
586-
pagination?.totalPages || Math.ceil(totalItems / itemsPerPage) || 1;
585+
const totalPages = Math.ceil(totalItems / itemsPerPage) || 1;
587586

588587
setParticipants(response.data?.participants || []);
589588
setParticipantsPagination({

0 commit comments

Comments
 (0)