[APP-1819] fix progress guide flash and extra gap (#9960)

This commit is contained in:
Spence Pope
2026-02-27 11:31:35 -05:00
committed by GitHub
parent 8a1f8997fe
commit 576761a645
+11 -3
View File
@@ -1,4 +1,4 @@
import {useState} from 'react'
import {useEffect, useState} from 'react'
import {
type LayoutChangeEvent,
type StyleProp,
@@ -43,8 +43,16 @@ export function ProgressGuideList({style}: {style?: StyleProp<ViewStyle>}) {
const actualFollowsCount = follows?.pages?.[0]?.follows?.length ?? 0
// Hide if user already follows 10+ people
if (guide?.guide === 'follow-10' && actualFollowsCount >= TOTAL_AVATARS) {
// Clear stale guide if user already follows 10+ people
const shouldEndGuide =
guide?.guide === 'follow-10' && actualFollowsCount >= TOTAL_AVATARS
useEffect(() => {
if (shouldEndGuide) {
endProgressGuide()
}
}, [shouldEndGuide, endProgressGuide])
if (shouldEndGuide) {
return null
}