Skip to content

Commit

Permalink
remove plantDictoinary
Browse files Browse the repository at this point in the history
  • Loading branch information
ccatherinetan committed Dec 23, 2024
1 parent ff38b08 commit c7c1918
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/add-details/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -68,11 +67,6 @@ export default function Home() {
plantsToAdd.map(plant => ({ plant_id: plant.id, user_id: userId! })),
);

const plantDictionary: Record<UUID, string> = {};
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
Expand Down

0 comments on commit c7c1918

Please sign in to comment.