Fix oopsie (#3538)

This commit is contained in:
dan
2024-04-13 18:40:50 +01:00
committed by GitHub
parent 228d947a84
commit 2164d32295
@@ -74,6 +74,7 @@ export function ProfileHoverCardInner(props: ProfileHoverCardProps) {
const prefetchedProfile = React.useRef(false)
const prefetchIfNeeded = React.useCallback(async () => {
if (!prefetchedProfile.current) {
prefetchedProfile.current = true
prefetchProfileQuery(props.did)
}
}, [prefetchProfileQuery, props.did])