diff --git a/imports/ui/ActivatePlant.jsx b/imports/ui/ActivatePlant.jsx index 7c30f87..f953b03 100644 --- a/imports/ui/ActivatePlant.jsx +++ b/imports/ui/ActivatePlant.jsx @@ -54,24 +54,28 @@ class ActivatePlant extends React.Component{ render (){ return ( <> -
- - Active plant: - - - {this.props.plants.map((plant, index) =>{ - return - })} - - - -
+ { + this.props.plants.length !== 0 ? +
+ + Active plant: + + + {this.props.plants.map((plant, index) =>{ + return + })} + + + +
+ :null + } ); }