Skip to content

Commit f9c98ad

Browse files
committed
fix: review comments
1 parent 7909129 commit f9c98ad

File tree

1 file changed

+2
-2
lines changed
  • src/apps/review/src/lib/components/Scorecard/ScorecardViewer/ScorecardQuestion/AiFeedbackActions

1 file changed

+2
-2
lines changed

src/apps/review/src/lib/components/Scorecard/ScorecardViewer/ScorecardQuestion/AiFeedbackActions/AiFeedbackActions.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const AiFeedbackActions: FC<AiFeedbackActionsProps> = props => {
5252
setUpVotes(initialUp)
5353
setDownVotes(initialDown)
5454
setUserVote(myVote?.voteType ?? undefined)
55-
}, [])
55+
}, [votesArr, props.feedback])
5656

5757
const setInitialVotesForComment = useCallback((): void => {
5858
const initialUp = votesArr.filter(v => String(v.voteType)
@@ -66,7 +66,7 @@ export const AiFeedbackActions: FC<AiFeedbackActionsProps> = props => {
6666
setUpVotes(initialUp)
6767
setDownVotes(initialDown)
6868
setUserVote(myVote?.voteType ?? undefined)
69-
}, [])
69+
}, [votesArr])
7070

7171
useEffect(() => {
7272
if (props.actionType === 'runItem') {

0 commit comments

Comments
 (0)