FIX: Solved button was showing up for poster, not topic poster
This commit is contained in:
parent
6cc8bb8ad4
commit
11a0c293b8
|
@ -115,7 +115,7 @@ function initializeWithApi(api) {
|
|||
const canAccept = attrs.can_accept_answer;
|
||||
const canUnaccept = attrs.can_unaccept_answer;
|
||||
const accepted = attrs.accepted_answer;
|
||||
const isOp = currentUser && currentUser.id === attrs.user_id;
|
||||
const isOp = currentUser && currentUser.id === attrs.topicCreatedById;
|
||||
const position = (!accepted && canAccept && !isOp) ? 'second-last-hidden' : 'first';
|
||||
|
||||
if (canAccept) {
|
||||
|
|
Loading…
Reference in New Issue