Skip to content

Commit

Permalink
remove unreachable plant info code
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielburnworth committed Feb 1, 2025
1 parent ffefa80 commit 11da0de
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions frontend/plants/plant_panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,17 +179,15 @@ export function PlantPanel(props: PlantPanelProps) {
navigate(Path.cropSearch());
}} />
</ListItem>
{(timeSettings && !inSavedGarden) &&
{timeSettings && !inSavedGarden &&
<div className="row info-box">
<div className="grid half-gap">
<label>{t("Started")}</label>
<EditDatePlanted {...commonProps}
datePlanted={plantedAt}
timeSettings={timeSettings} />
</div>
{(!inSavedGarden)
? <EditPlantStatus {...commonProps} plantStatus={plantStatus} />
: t(startCase(plantStatus))}
<EditPlantStatus {...commonProps} plantStatus={plantStatus} />
<div className="grid half-gap">
<label>{t("Age")}</label>
{daysOldText({ age: daysOld, stage: plantStatus })}
Expand Down

0 comments on commit 11da0de

Please sign in to comment.