Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Comment thread
devin-ai-integration[bot] marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const AiFeedback: FC<AiFeedbackProps> = props => {
const commentsArr: any[] = (feedback?.comments) || []

const onShowReply = useCallback(() => {
setShowReply(!showReply)
setShowReply(prevShowReply => !prevShowReply)
}, [])

const onSubmitReply = useCallback(async (content: string) => {
Expand Down Expand Up @@ -87,9 +87,13 @@ const AiFeedback: FC<AiFeedbackProps> = props => {
<AiFeedbackActions
feedback={feedback}
actionType='runItem'
onPressReply={commentsArr.length === 0 ? onShowReply : undefined}
onPressReply={onShowReply}
/>

{commentsArr.length > 0 && (
<AiFeedbackComments comments={commentsArr} feedback={feedback} isRoot />
)}

{
showReply && (
<AiFeedbackReply
Expand All @@ -100,10 +104,6 @@ const AiFeedback: FC<AiFeedbackProps> = props => {
/>
)
}

{commentsArr.length > 0 && (
<AiFeedbackComments comments={commentsArr} feedback={feedback} isRoot />
)}
</ScorecardQuestionRow>
)
}
Expand Down
Loading