diff --git a/src/app/needs/components/NeedsDisplay.tsx b/src/app/needs/components/NeedsDisplay.tsx index c2e2beb4..4566fe11 100644 --- a/src/app/needs/components/NeedsDisplay.tsx +++ b/src/app/needs/components/NeedsDisplay.tsx @@ -32,7 +32,6 @@ export default function NeedsDisplay() { const [worthDoing, setWorthDoing] = useState(0); const [positiveLabel, setPositiveLabel] = useState("urgent"); const [negativeLabel, setNegativeLabel] = useState("not urgent"); - const [isModalCompleted, setIsModalCompleted] = useState(false); const fetchCategories = async () => { const response = await database.getFromDb("needs_categories"); @@ -125,11 +124,9 @@ export default function NeedsDisplay() { handleIncrease(setEffortful); } else if (needsStep === 3) { handleIncrease(setWorthDoing); - setIsModalCompleted(true); setModalOpen(false); setNeedsStep(1); - setIsModalCompleted(false); } }; @@ -140,12 +137,9 @@ export default function NeedsDisplay() { handleDecrease(setEffortful); } else if (needsStep === 3) { handleDecrease(setWorthDoing); - setIsModalCompleted(true); setModalOpen(false); setNeedsStep(1); - - setIsModalCompleted(false); } }; diff --git a/src/app/needs/components/NeedsModal.tsx b/src/app/needs/components/NeedsModal.tsx index f90dc112..ef44e29b 100644 --- a/src/app/needs/components/NeedsModal.tsx +++ b/src/app/needs/components/NeedsModal.tsx @@ -1,7 +1,6 @@ import Button from "@/ui/shared/Button"; import { ChevronLeftIcon } from "@heroicons/react/24/outline"; import { XMarkIcon } from "@heroicons/react/24/outline"; -import { Dispatch, SetStateAction } from "react"; interface ModalProps { inputModal?: boolean; diff --git a/src/lib/utils/retrieveDataObject.ts b/src/lib/utils/retrieveDataObject.ts index 54ea1d07..5916dfdf 100644 --- a/src/lib/utils/retrieveDataObject.ts +++ b/src/lib/utils/retrieveDataObject.ts @@ -1,5 +1,4 @@ import { RxDocument } from "rxdb"; -import { Insight } from "@/app/insights/components/InsightsDisplay"; export default function retrieveDataObject(dataArr: RxDocument[]): T[] { return dataArr.map((item) => item._data);