mirror of
https://github.com/wassname/talk.git
synced 2026-10-01 12:42:56 +08:00
Handle empty stream case
This commit is contained in:
1 parent
92205a2c6f
commit
81bd983f0b
1 file changed
+5
-3
@@ -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