+
{user.id === me?.id ? (
<>
You have not made any bets yet.{' '}
@@ -250,6 +251,11 @@ const NoBets = ({ user }: { user: User }) => {
)
}
+const NoMatchingBets = () => (
+
+ No bets matching the current filter.
+
+)
function ContractBets(props: {
contract: Contract
diff --git a/web/components/pagination.tsx b/web/components/pagination.tsx
index 8c008ab0..8dde743c 100644
--- a/web/components/pagination.tsx
+++ b/web/components/pagination.tsx
@@ -58,7 +58,7 @@ export function Pagination(props: {
const maxPage = Math.ceil(totalItems / itemsPerPage) - 1
- if (maxPage === 0) return
+ if (maxPage <= 0) return
return (