hcs-t4sg / t4sg-zest.ai

7 stars 1 forks source link

Cleanup Code, Remove unused components, Fix minor frontend bugs #46

Closed dzheng21 closed 3 years ago

dzheng21 commented 3 years ago

Removed Display.js, an unused components from the code. Also cleaned up comments and other console.logs in the code left from debugging.

Refactored USPS API call to be its own function, changed the way that handleSubmit() sets states. There were some issues with state changing that led to bugs like needing to double click the submit button, and error messages & "Loading..." messages not being displayed properly.

Would love suggestions if there is a better way to handle these changes, last thing to potentially fix would be to have some sort of delete functionality for old bar graphs.