From 992ecd9336d653d19c8194d7c0ecd6134c74e748 Mon Sep 17 00:00:00 2001 From: 0xKurt Date: Fri, 25 Apr 2025 14:28:29 +0200 Subject: [PATCH] remove match amount min check --- packages/common/src/index.ts | 3 +++ .../src/features/round/ViewRoundSettings.tsx | 12 +++--------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/packages/common/src/index.ts b/packages/common/src/index.ts index f352560820..e256aab161 100644 --- a/packages/common/src/index.ts +++ b/packages/common/src/index.ts @@ -63,6 +63,9 @@ export const fetchPassport = ( communityId: string, apiKey: string ): Promise => { + console.log("fetchPassport: hammer time", { + address, + }); const url = `${process.env.REACT_APP_PASSPORT_API_ENDPOINT}/v2/stamps/${communityId}/score/${address}`; return fetch(url, { method: "GET", diff --git a/packages/round-manager/src/features/round/ViewRoundSettings.tsx b/packages/round-manager/src/features/round/ViewRoundSettings.tsx index 3739ce91fe..a0cec5bc2e 100644 --- a/packages/round-manager/src/features/round/ViewRoundSettings.tsx +++ b/packages/round-manager/src/features/round/ViewRoundSettings.tsx @@ -245,14 +245,7 @@ export default function ViewRoundSettings(props: { ), }), quadraticFundingConfig: yup.object({ - matchingFundsAvailable: yup - .number() - .typeError("Invalid value.") - .min( - round?.roundMetadata?.quadraticFundingConfig - ?.matchingFundsAvailable ?? 0, - `Must be greater than previous value of ${round?.roundMetadata?.quadraticFundingConfig?.matchingFundsAvailable}.` - ), + matchingFundsAvailable: yup.number().typeError("Invalid value."), matchingCapAmount: yup.number().when("matchingCap", { is: (val: string) => val === "yes", then: yup @@ -2087,7 +2080,8 @@ function Funding(props: { ?.matchingCap !== true } checked={ - !props.editedRound?.roundMetadata?.quadraticFundingConfig?.matchingCap + !props.editedRound?.roundMetadata?.quadraticFundingConfig + ?.matchingCap } onChange={(e) => { props.resetField(