We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f124bf commit b5f3e12Copy full SHA for b5f3e12
pages/index.tsx
@@ -456,7 +456,11 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
456
}
457
458
// Set gift details if gift = true in the query params (only for tree projects)
459
- if (context.query.gift === "true" && projectDetails?.purpose === "trees") {
+ if (
460
+ context.query.gift === "true" &&
461
+ projectDetails !== null &&
462
+ !NON_GIFTABLE_PROJECT_PURPOSES.includes(projectDetails.purpose)
463
+ ) {
464
isGift = true;
465
giftDetails = {
466
type: "invitation",
0 commit comments