Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fixed pagination bug

Steven Teyadbd1a317885
diff --git a/components/app/links/link-pagination.tsx b/components/app/links/link-pagination.tsx
index 7c43b95802..8755d4a3dc 100644
--- a/components/app/links/link-pagination.tsx
+++ b/components/app/links/link-pagination.tsx
@@ -90,7 +90,7 @@ export default function LinkPagination() {
</div>
<p className="text-sm text-gray-500">
Showing {(currentPage - 1) * PAGINATION_LIMIT + 1} -{" "}
- {currentPage * PAGINATION_LIMIT} of{" "}
+ {Math.min(currentPage * PAGINATION_LIMIT, count)} of{" "}
<Number value={count} unit="links">
<span>{nFormatter(count)}</span>
</Number>{" "}