From c7c1918ac757817367e5a3d52cf13bae0af9c11d Mon Sep 17 00:00:00 2001 From: Catherine Tan Date: Sun, 22 Dec 2024 19:31:47 -0800 Subject: [PATCH] remove plantDictoinary --- app/add-details/page.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/add-details/page.tsx b/app/add-details/page.tsx index 12a1bef..e205a72 100644 --- a/app/add-details/page.tsx +++ b/app/add-details/page.tsx @@ -2,7 +2,6 @@ import { useState } from 'react'; import { useRouter } from 'next/navigation'; -import { UUID } from 'crypto'; import { insertUserPlants } from '@/api/supabase/queries/userPlants'; import PlantDetails from '@/components/PlantDetails'; import COLORS from '@/styles/colors'; @@ -68,11 +67,6 @@ export default function Home() { plantsToAdd.map(plant => ({ plant_id: plant.id, user_id: userId! })), ); - const plantDictionary: Record = {}; - for (const plant of plantsToAdd) { - plantDictionary[plant.id] = plant.plant_name; - } - const getDefaultDate = () => new Date().toISOString().substring(0, 10); // Navigate between plants and save input data