Open willayy opened 5 months ago
This function is very hard to read/follow, if it was made with a switch statement and some of the conditions where factored out in the beginning of the function as function local variables I think that would improve the readability.
https://github.com/willayy/DAT257-Agile/blob/d386c0f6d4ee4b4e261f4a4909b691f42c0f6f83/agile-app/src/app/map/page.tsx#L128-L174
This function is very hard to read/follow, if it was made with a switch statement and some of the conditions where factored out in the beginning of the function as function local variables I think that would improve the readability.
https://github.com/willayy/DAT257-Agile/blob/d386c0f6d4ee4b4e261f4a4909b691f42c0f6f83/agile-app/src/app/map/page.tsx#L128-L174