Skip to content

Commit 992ecd9

Browse files
committed
remove match amount min check
1 parent a3f1ba7 commit 992ecd9

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

packages/common/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ export const fetchPassport = (
6363
communityId: string,
6464
apiKey: string
6565
): Promise<Response> => {
66+
console.log("fetchPassport: hammer time", {
67+
address,
68+
});
6669
const url = `${process.env.REACT_APP_PASSPORT_API_ENDPOINT}/v2/stamps/${communityId}/score/${address}`;
6770
return fetch(url, {
6871
method: "GET",

packages/round-manager/src/features/round/ViewRoundSettings.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -245,14 +245,7 @@ export default function ViewRoundSettings(props: {
245245
),
246246
}),
247247
quadraticFundingConfig: yup.object({
248-
matchingFundsAvailable: yup
249-
.number()
250-
.typeError("Invalid value.")
251-
.min(
252-
round?.roundMetadata?.quadraticFundingConfig
253-
?.matchingFundsAvailable ?? 0,
254-
`Must be greater than previous value of ${round?.roundMetadata?.quadraticFundingConfig?.matchingFundsAvailable}.`
255-
),
248+
matchingFundsAvailable: yup.number().typeError("Invalid value."),
256249
matchingCapAmount: yup.number().when("matchingCap", {
257250
is: (val: string) => val === "yes",
258251
then: yup
@@ -2087,7 +2080,8 @@ function Funding(props: {
20872080
?.matchingCap !== true
20882081
}
20892082
checked={
2090-
!props.editedRound?.roundMetadata?.quadraticFundingConfig?.matchingCap
2083+
!props.editedRound?.roundMetadata?.quadraticFundingConfig
2084+
?.matchingCap
20912085
}
20922086
onChange={(e) => {
20932087
props.resetField(

0 commit comments

Comments
 (0)