TJRawlins / IrrigationManagerReact

Frontend irrigation management system (React TS)
1 stars 0 forks source link

React - Conditional for returned Trefle Data where common_name does not match plant name #41

Open TJRawlins opened 7 months ago

TJRawlins commented 7 months ago

Prevent wrong Trefle API plant information from appearing in the view plant card. Set up a conditional that will compare the returned common_name with the plant's actual name. If it does not match, create new instance of Trefle Plant with default values.