Skip to content

Commit

Permalink
Merge pull request #780 from Prop-House/snca-hot-fix-prop-limit
Browse files Browse the repository at this point in the history
Increase per page limit
  • Loading branch information
cryptoseneca committed Jan 31, 2024
2 parents 05be64d + b087b8d commit 659b776
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/prop-house-card-renderer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions packages/prop-house-webapp/src/pages/Round/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<boolean>();
const [loadedProposals, setLoadedProposals] = useState(false);
const [loadingProposalsFailed, setLoadingProposalsFailed] = useState(false);
Expand All @@ -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) {
Expand Down

0 comments on commit 659b776

Please sign in to comment.