Refactor this to give the state a type that matches what is received from the backend. Also change variable names to not be one letter and to make sense semantically. A Record<string, number> or an interface like below should work for the type if I am understanding the code correctly.
Currently vote colors is not typed and is instantiated as an empty array: https://github.com/icssc/peterportal-client/blob/acb7df1277b8a37c3263034bcfb3ae2dc239bcb4/site/src/component/Review/Review.tsx#L26
This leads to some confusing typing that occurs later: https://github.com/icssc/peterportal-client/blob/acb7df1277b8a37c3263034bcfb3ae2dc239bcb4/site/src/component/Review/Review.tsx#L75-L76
Refactor this to give the state a type that matches what is received from the backend. Also change variable names to not be one letter and to make sense semantically. A
Record<string, number>
or an interface like below should work for the type if I am understanding the code correctly.Blocked by #364