Fix order of comments in threads and under answers
This commit is contained in:
parent
d336383a93
commit
27b46f4306
|
@ -84,7 +84,10 @@ export function ContractCommentsActivity(props: {
|
||||||
user={user}
|
user={user}
|
||||||
contract={contract}
|
contract={contract}
|
||||||
parentComment={parent}
|
parentComment={parent}
|
||||||
threadComments={commentsByParentId[parent.id] ?? []}
|
threadComments={sortBy(
|
||||||
|
commentsByParentId[parent.id] ?? [],
|
||||||
|
(c) => c.createdTime
|
||||||
|
)}
|
||||||
tips={tips}
|
tips={tips}
|
||||||
bets={bets}
|
bets={bets}
|
||||||
betsByUserId={betsByUserId}
|
betsByUserId={betsByUserId}
|
||||||
|
@ -132,7 +135,10 @@ export function FreeResponseContractCommentsActivity(props: {
|
||||||
contract={contract}
|
contract={contract}
|
||||||
user={user}
|
user={user}
|
||||||
answer={answer}
|
answer={answer}
|
||||||
answerComments={commentsByOutcome[answer.number.toString()] ?? []}
|
answerComments={sortBy(
|
||||||
|
commentsByOutcome[answer.number.toString()] ?? [],
|
||||||
|
(c) => c.createdTime
|
||||||
|
)}
|
||||||
tips={tips}
|
tips={tips}
|
||||||
betsByUserId={betsByUserId}
|
betsByUserId={betsByUserId}
|
||||||
commentsByUserId={commentsByUserId}
|
commentsByUserId={commentsByUserId}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user