Fix undefined inHome

This commit is contained in:
Lim Chee Aun 2023-01-27 15:17:56 +08:00
parent 515b988b94
commit 31b342d68e

View file

@ -443,7 +443,7 @@ function startVisibility() {
const newStatuses = await fetchHome; const newStatuses = await fetchHome;
const hasOneAndReblog = const hasOneAndReblog =
newStatuses.length === 1 && newStatuses?.[0]?.reblog; newStatuses.length === 1 && newStatuses?.[0]?.reblog;
if (newStatuses.length && !inHome) { if (newStatuses.length) {
if (states.settings.boostsCarousel && hasOneAndReblog) { if (states.settings.boostsCarousel && hasOneAndReblog) {
// do nothing // do nothing
} else { } else {