Skip to content

Commit

Permalink
fix: prevent use of gift=true query param if direct gift is set
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitb35 committed Dec 4, 2024
1 parent fc5c245 commit 57812dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => {

// Set gift details if gift = true in the query params (only for tree projects)
if (
giftDetails?.type !== "direct" &&
context.query.gift === "true" &&
projectDetails !== null &&
!NON_GIFTABLE_PROJECT_PURPOSES.includes(projectDetails.purpose)
Expand Down

0 comments on commit 57812dd

Please sign in to comment.