Skip to content

Commit

Permalink
added console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
kslazykv committed Dec 4, 2024
1 parent 5583062 commit bae0db2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/PlantContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export const PlantContextProvider: React.FC = ({ children }): JSX.Element => {
console.warn(
`No plant found for path ID: ${plantInPath}. Using default fallback.`
);
// return { id: '', title: 'Unknown Plant', pathId: plantInPath };
}

return { id: plant.id, title: plant.title, pathId: plantInPath };
Expand All @@ -91,7 +90,7 @@ export const PlantContextProvider: React.FC = ({ children }): JSX.Element => {
user.plants
);
throw new InvalidParameterException(
`PlantID: ${plantId} does not exist`
`Available plants: ${user.plants}, PlantID: ${plantId} does not exist. , plantInPath: ${plantInPath}`
);
}
const plant = plantsFiltered[0] as PlantContextDetails;
Expand Down

0 comments on commit bae0db2

Please sign in to comment.