mirror of
https://github.com/wassname/talk.git
synced 2026-07-02 23:22:24 +08:00
Handle empty stream case
This commit is contained in:
@@ -129,9 +129,11 @@ class Embed extends Component {
|
||||
|
||||
const banned = user && user.status === 'BANNED';
|
||||
|
||||
const hasOlderComments =
|
||||
asset && asset.lastComment &&
|
||||
asset.lastComment.id !== asset.comments[asset.comments.length - 1].id;
|
||||
const hasOlderComments = !!(
|
||||
asset &&
|
||||
asset.lastComment &&
|
||||
asset.lastComment.id !== asset.comments[asset.comments.length - 1].id
|
||||
);
|
||||
|
||||
const expandForLogin = showSignInDialog ? {
|
||||
minHeight: document.body.scrollHeight + 200
|
||||
|
||||
Reference in New Issue
Block a user