This repository was archived by the owner on Mar 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,9 @@ import angular from 'angular'
124124
125125 if ( answerObject . comments && answerObject . comments . length > 0 ) {
126126 // pick first comment for peer review challenges
127+ // does not handle displaying multiple comments yet
127128 questions [ questionId ] . comment = answerObject . comments [ 0 ] . content
129+ questions [ questionId ] . commentId = answerObject . comments [ 0 ] . id
128130 }
129131
130132 if ( answerObject . answer !== '' ) {
@@ -148,15 +150,15 @@ import angular from 'angular'
148150 answer : '' + q . answer
149151 }
150152
151- if ( q . comment && q . comment . length > 0 ) {
152- reviewItem . comments = [
153- {
154- content : '' + q . comment ,
155- resourceId : review . resourceId ,
156- commentTypeId : 1
157- }
158- ]
159- }
153+ reviewItem . comments = [
154+ {
155+ content : '' + q . comment ,
156+ id : q . commentId ,
157+ resourceId : review . resourceId ,
158+ commentTypeId : 1 ,
159+ reviewItemId : q . reviewItemId
160+ }
161+ ]
160162
161163 if ( updating ) {
162164 reviewItem . id = q . reviewItemId
Original file line number Diff line number Diff line change @@ -130,6 +130,7 @@ modal {
130130 display : flex ;
131131 flex-direction : column ;
132132 align-items : center ;
133+ text-align : center ;
133134 }
134135
135136 .upload-progress__image ,
You can’t perform that action at this time.
0 commit comments