From 6a5d12e2b2fefd048e4a17dfd258efd6781518a0 Mon Sep 17 00:00:00 2001 From: valid Date: Sun, 5 Mar 2023 04:08:03 +0100 Subject: [PATCH] enable setting logic for POAP general reqs --- .../components/PoapRequirements/PoapRequirements.tsx | 3 ++- .../[guild]/CreatePoap/hooks/useUpdatePoapRequirements.ts | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/[guild]/CreatePoap/components/PoapRequirements/PoapRequirements.tsx b/src/components/[guild]/CreatePoap/components/PoapRequirements/PoapRequirements.tsx index 9102384cf4..f2555e64a9 100644 --- a/src/components/[guild]/CreatePoap/components/PoapRequirements/PoapRequirements.tsx +++ b/src/components/[guild]/CreatePoap/components/PoapRequirements/PoapRequirements.tsx @@ -1,6 +1,7 @@ import { Button, Flex, Heading, Stack } from "@chakra-ui/react" import CardMotionWrapper from "components/common/CardMotionWrapper" import AddRequirement from "components/create-guild/Requirements/components/AddRequirement" +import LogicPicker from "components/create-guild/Requirements/components/LogicPicker" import RequirementEditableCard from "components/create-guild/Requirements/components/RequirementEditableCard" import useGuild from "components/[guild]/hooks/useGuild" import LogicDivider from "components/[guild]/LogicDivider" @@ -132,7 +133,7 @@ const PoapRequirements = ({ guildPoap }): JSX.Element => { removeRequirement={remove} updateRequirement={update} /> - + ) })} diff --git a/src/components/[guild]/CreatePoap/hooks/useUpdatePoapRequirements.ts b/src/components/[guild]/CreatePoap/hooks/useUpdatePoapRequirements.ts index 04ac3b0f2a..260bd6b054 100644 --- a/src/components/[guild]/CreatePoap/hooks/useUpdatePoapRequirements.ts +++ b/src/components/[guild]/CreatePoap/hooks/useUpdatePoapRequirements.ts @@ -36,7 +36,6 @@ const useUpdatePoapRequirements = ( ...rest, onSubmit: (data) => { data.requirements = preprocessRequirements(data?.requirements) - data.logic = "AND" return onSubmit(data) }, }