fix: don't fix sidebar if the summoner has no stats

This commit is contained in:
Valentin Kaelin 2020-06-21 13:31:36 +02:00
parent 6dbe9a8871
commit 6ec0fc7e85

View file

@ -134,6 +134,7 @@ export default {
if (this.isMobile) return
if (!this.sidebarRectangle.height) return
if (!this.overview.matches.length) return
if (!this.overview.stats.champion.length) return
this.fixedSidebar = window.innerHeight + document.documentElement.scrollTop > this.sidebarRectangle.y + this.sidebarRectangle.height + 123
},