circumvent gun.load() bug

This commit is contained in:
Daniel Lugo 2020-06-26 19:58:19 -04:00
parent 35e2197095
commit a8104d490c

View file

@ -76,6 +76,12 @@ const getWallPage = async page => {
} }
} }
// .load() sometimes doesn't load all data on first call
// @ts-ignore
if (Object.keys(clean.posts).length === 0) {
return true
}
return !Common.Schema.isWallPage(clean) return !Common.Schema.isWallPage(clean)
} }
) )