Skip to content

Commit

Permalink
bug fixed in mapping.js and added proposal ui data fetch update on qu…
Browse files Browse the repository at this point in the history
…ery status true and personal donation ui pending
  • Loading branch information
muhammedshahinshapottayil committed Apr 4, 2024
1 parent 9dbe64b commit cf44fdc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/nextjs/app/browse-projects/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const Page = () => {
const PROPOSAL_GRAPHQL = `
query MyQuery($currentTime: BigInt!) {
proposals(
where: { expiryDate_gt: $currentTime }
where: { expiryDate_gt: $currentTime, status:true }
orderBy: expiryDate
orderDirection: desc
) {
Expand Down
8 changes: 4 additions & 4 deletions packages/subgraph/src/mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ export function handleWithdrawal(event: Evt__Donation__Withdraw) {
}

export function handleFundWithdrawal(event: Evt__Fund__Withdrawed) {
const donation = Donation.load(
const proposal = Proposal.load(
genId(event.params.account, event.params.contractAddress)
);
if (donation) {
donation.status = false;
donation.save();
if (proposal) {
proposal.status = false;
proposal.save();
}
}

Expand Down

0 comments on commit cf44fdc

Please sign in to comment.