From 9f22dace2544ff5b4e3de452f0c5dc95fb205214 Mon Sep 17 00:00:00 2001 From: cryptoseneca <85328329+cryptoseneca@users.noreply.github.com> Date: Wed, 31 Jan 2024 15:49:07 -0500 Subject: [PATCH 1/2] update wait until property --- packages/prop-house-card-renderer/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/prop-house-card-renderer/src/index.ts b/packages/prop-house-card-renderer/src/index.ts index 5e237ff10..a1bbef0be 100644 --- a/packages/prop-house-card-renderer/src/index.ts +++ b/packages/prop-house-card-renderer/src/index.ts @@ -20,7 +20,7 @@ const config: Config = { cachePath: process.env.CACHE_PATH ?? '/tmp/phcache', cardHeight: process.env.CARD_HEIGHT ? Number(process.env.CARD_HEIGHT) : 512, cardWidth: process.env.CARD_WIDTH ? Number(process.env.CARD_WIDTH) : 1024, - remoteWaitUntil: (process.env.REMOTE_WAIT_UNTIL as PuppeteerLifeCycleEvent) ?? 'networkidle0', + remoteWaitUntil: (process.env.REMOTE_WAIT_UNTIL as PuppeteerLifeCycleEvent) ?? 'networkidle2', }; const wrapper = new PropHouseWrapper(config.apiBase); From b087b8d8c40ceafc4dcd7385770d0c1189117d53 Mon Sep 17 00:00:00 2001 From: cryptoseneca <85328329+cryptoseneca@users.noreply.github.com> Date: Wed, 31 Jan 2024 18:46:32 -0500 Subject: [PATCH 2/2] increase per page limit --- packages/prop-house-webapp/src/pages/Round/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/prop-house-webapp/src/pages/Round/index.tsx b/packages/prop-house-webapp/src/pages/Round/index.tsx index 2a05c08b8..4dcd5e077 100644 --- a/packages/prop-house-webapp/src/pages/Round/index.tsx +++ b/packages/prop-house-webapp/src/pages/Round/index.tsx @@ -22,6 +22,8 @@ const Round: React.FC<{}> = () => { const isModalActive = useAppSelector(state => state.propHouse.modalActive); const proposals = useAppSelector(state => state.propHouse.activeProposals); + console.log(proposals && proposals); + const [loadingProposals, setLoadingProposals] = useState(); const [loadedProposals, setLoadedProposals] = useState(false); const [loadingProposalsFailed, setLoadingProposalsFailed] = useState(false); @@ -35,6 +37,7 @@ const Round: React.FC<{}> = () => { setLoadingProposals(true); const proposals = await propHouse.query.getProposalsForRound(round.address, { where: { isCancelled: false }, + perPage: 60, }); dispatch(setOnChainActiveProposals(proposals)); } catch (e) {