Line 61 of FEC_Lighthouse/components/Overview/AddToCart.jsx is very condensed and complicated with not much explanation.
This line is doing a lot of work. I think breaking up the steps a bit and making each step a bit more identifiable would be really beneficial for future code reviews.
Files
FEC_Lighthouse/components/Overview/AddToCart.jsx
Tasks
One route of going about this may be:
[ ] Break up some of the operations into different steps on different lines
[ ] Make sure their results are attached to descriptive variable names that can be easily inferred as to what they are doing.
[ ] Use the variable names within the dependent functions so that one can easily follow the flow of data.
https://github.com/Team-Pharos/FEC_Lighthouse/blob/47b9ec0dc4d9036de296df743ecc2f592ea5d160/src/components/Overview/AddToCart.jsx#L61
Description:
Line 61 of FEC_Lighthouse/components/Overview/AddToCart.jsx is very condensed and complicated with not much explanation.
This line is doing a lot of work. I think breaking up the steps a bit and making each step a bit more identifiable would be really beneficial for future code reviews.
Files
FEC_Lighthouse/components/Overview/AddToCart.jsx
Tasks
One route of going about this may be: