Skip to content

Duplicate use of ComponentDidMount in a single file

In CarbonFootprint-API\client\src\components\Profile\DailyEmission.js , componentDidMount is used twice which is not a good practise.

Also evident from the warnings in the console

Screenshot__3188_

Duplicate componentDidMount

Screenshot__3189_