Skip to content

Commit b7379c8

Browse files
committed
feat: disables PC payment for "tree + m2" donation
1 parent 238f907 commit b7379c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Donations/Components/DonationsForm.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ function DonationsForm(): ReactElement {
109109
projectDetails !== null &&
110110
projectDetails.purpose !== "funds" &&
111111
projectDetails.purpose !== "planet-cash" &&
112+
!(projectDetails.purpose === "trees" && paymentSetup?.unitType === "m2") && //Disables planetcash for restoration projects with unitType m2 (TEMP)
112113
profile !== null &&
113114
isSignedUp &&
114115
profile.planetCash !== null &&

0 commit comments

Comments
 (0)