SE310-1 / W.A.K

W.A.K is a movie tracker web-app developed to simplify and enhance the movie-rating experience while making this process more fun and customisable.
MIT License
2 stars 12 forks source link

Refactor js files. #70

Closed klam656 closed 1 year ago

klam656 commented 1 year ago

While reviewing our current codebase alongside the original code from the previous team, I observed inconsistencies in variable naming. For instance:

Original code const { dispatch } = useAuthContext(); Our code const { user } = useAuthContext();

Final version: const { user } = useAuthContext();

To enhance readability and ensure consistency, I have decided to refactor these discrepancies. This refactoring aims to make the codebase easier to navigate and maintain.

Additionally, I identified and eliminated some duplicate code segments, replacing them with functions. This streamlined approach facilitates more efficient code maintenance for other developers.

Any feedback or suggestions for further improvements are always welcome.

Contribute to #61