diff --git a/web/lib/firebase/contracts.ts b/web/lib/firebase/contracts.ts index f4c7de2f..4942d721 100644 --- a/web/lib/firebase/contracts.ts +++ b/web/lib/firebase/contracts.ts @@ -105,7 +105,7 @@ export async function listContracts(creatorId: string): Promise { } export async function listAllContracts(): Promise { - const q = query(contractCollection, orderBy('createdTime', 'desc'), limit(25)) + const q = query(contractCollection, orderBy('createdTime', 'desc'), limit(99)) const snapshot = await getDocs(q) return snapshot.docs.map((doc) => doc.data() as Contract) } @@ -113,7 +113,7 @@ export async function listAllContracts(): Promise { export function listenForContracts( setContracts: (contracts: Contract[]) => void ) { - const q = query(contractCollection, orderBy('createdTime', 'desc'), limit(25)) + const q = query(contractCollection, orderBy('createdTime', 'desc'), limit(99)) return onSnapshot(q, (snap) => { setContracts(snap.docs.map((doc) => doc.data() as Contract)) })