Skip to content

Commit

Permalink
fix(ui): account mentions not being fetched when visible (#2624)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed Feb 25, 2024
1 parent 6f20ce5 commit fc5d248
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/account/AccountHoverWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const account = ref<mastodon.v1.Account | null | undefined>(props.account)
useIntersectionObserver(
hoverCard,
([{ intersectionRatio }]) => {
targetIsVisible.value = intersectionRatio <= 0.75
targetIsVisible.value = intersectionRatio > 0.1
},
)
watch(
Expand All @@ -32,7 +32,7 @@ watch(
return
}
if (!newVisible)
if (!newVisible || process.test)
return
if (newHandle) {
Expand Down

0 comments on commit fc5d248

Please sign in to comment.