Handle empty stream case

This commit is contained in:
Chi Vinh Le
2017-04-13 01:34:27 +07:00
parent 92205a2c6f
commit 81bd983f0b
+5 -3
View File
@@ -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