Skip to content

Commit 7b8c4fc

Browse files
committed
Fix Lint issues of using const
1 parent 026ed8b commit 7b8c4fc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

site/src/component/UserReviews/UserReviews.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,20 @@ const UserReviews: FC = () => {
4040
};
4141

4242
const updateVoteColors = async () => {
43-
let reviewIDs = [];
43+
const reviewIDs = [];
4444
for (let i = 0; i < reviews.length; i++) {
4545
reviewIDs.push(reviews[i]._id);
4646
}
4747
const req = {
4848
ids: reviewIDs as string[],
4949
};
50-
let colors = await getColors(req);
50+
const colors = await getColors(req);
5151
setVoteColors(colors);
5252
};
5353

5454
const getU = (id: string | undefined) => {
55-
let temp = voteColors as Object;
56-
let v = temp[id as keyof typeof temp] as unknown as number;
55+
const temp = voteColors as Object;
56+
const v = temp[id as keyof typeof temp] as unknown as number;
5757
if (v == 1) {
5858
return {
5959
colors: [true, false],

0 commit comments

Comments
 (0)