diff --git a/packages/nextjs/app/admin/_components/ActionModal.tsx b/packages/nextjs/app/admin/_components/ActionModal.tsx index e179c40..cdb8aeb 100644 --- a/packages/nextjs/app/admin/_components/ActionModal.tsx +++ b/packages/nextjs/app/admin/_components/ActionModal.tsx @@ -40,7 +40,7 @@ export const ActionModal = forwardRef(({ gr {action !== PROPOSAL_STATUS.REJECTED && (
-

Transction Hash

+

Transaction Hash

); })} - {grant.builderData?.stream?.cap && ( -
- Stream:  - {grant.builderData.stream.cap} ETH -
- )}
diff --git a/packages/nextjs/services/database/grants.ts b/packages/nextjs/services/database/grants.ts index 630e649..3153890 100644 --- a/packages/nextjs/services/database/grants.ts +++ b/packages/nextjs/services/database/grants.ts @@ -146,6 +146,13 @@ export const reviewGrant = async ({ grantId, action, txHash, txChainId, note }: // Prepare the data to update based on the action const updateData: Partial = { status: action }; + // Reject build submission moving back to APPROVED status + const grantSnapshot = await getGrantSnapshotById(grantId); + const currentStatus = grantSnapshot.data()?.status; + if (currentStatus === PROPOSAL_STATUS.SUBMITTED && action === PROPOSAL_STATUS.REJECTED) { + updateData.status = PROPOSAL_STATUS.APPROVED; + } + if (note !== undefined) { updateData.note = note; }