Commit 7b8c4fc 1 parent 026ed8b commit 7b8c4fc Copy full SHA for 7b8c4fc
File tree 1 file changed +4
-4
lines changed
site/src/component/UserReviews
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -40,20 +40,20 @@ const UserReviews: FC = () => {
40
40
} ;
41
41
42
42
const updateVoteColors = async ( ) => {
43
- let reviewIDs = [ ] ;
43
+ const reviewIDs = [ ] ;
44
44
for ( let i = 0 ; i < reviews . length ; i ++ ) {
45
45
reviewIDs . push ( reviews [ i ] . _id ) ;
46
46
}
47
47
const req = {
48
48
ids : reviewIDs as string [ ] ,
49
49
} ;
50
- let colors = await getColors ( req ) ;
50
+ const colors = await getColors ( req ) ;
51
51
setVoteColors ( colors ) ;
52
52
} ;
53
53
54
54
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 ;
57
57
if ( v == 1 ) {
58
58
return {
59
59
colors : [ true , false ] ,
You can’t perform that action at this time.
0 commit comments