From 9100a8914fb348857cf735e06c15c6704a923621 Mon Sep 17 00:00:00 2001 From: FBalint Date: Wed, 3 Jul 2024 15:02:31 +0200 Subject: [PATCH] v1 - with unblurred backgrounds fixed --- src/components/[guild]/AddRewardButton/SelectRolePanel.tsx | 2 +- src/solutions/AddSolutionsButton.tsx | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/[guild]/AddRewardButton/SelectRolePanel.tsx b/src/components/[guild]/AddRewardButton/SelectRolePanel.tsx index 8f27941d36..75cec619d6 100644 --- a/src/components/[guild]/AddRewardButton/SelectRolePanel.tsx +++ b/src/components/[guild]/AddRewardButton/SelectRolePanel.tsx @@ -67,7 +67,7 @@ const SelectRolePanel = ({ const goBack = () => { if (!rewards[selection].autoRewardSetup) methods.reset(defaultValues) - selection === "POLYGON_ID" ? setStep("HOME") : setStep("REWARD_SETUP") + setStep(selection === "POLYGON_ID" ? "HOME" : "REWARD_SETUP") } return ( diff --git a/src/solutions/AddSolutionsButton.tsx b/src/solutions/AddSolutionsButton.tsx index d0625542ee..4ee7199bad 100644 --- a/src/solutions/AddSolutionsButton.tsx +++ b/src/solutions/AddSolutionsButton.tsx @@ -170,7 +170,7 @@ const AddSolutionsButton = () => { const categoryFormMethods = useForm({ mode: "all" }) const { - field: { ref: _ref, ...categoryField }, + field: { ref, ...categoryField }, } = useController({ control: categoryFormMethods.control, name: "category", @@ -370,9 +370,8 @@ const Category = ({ mb={filteredItems.length === 0 ? 2 : 8} > {filteredItems.map((item, index) => ( - +