diff --git a/app/routes/u.$identifier/index.tsx b/app/routes/u.$identifier/index.tsx index bf445dd02..c8746c568 100644 --- a/app/routes/u.$identifier/index.tsx +++ b/app/routes/u.$identifier/index.tsx @@ -114,6 +114,12 @@ function SocialLinkIcon({ type }: Pick) { function BadgeContainer(props: { badges: UserPageLoaderData["badges"] }) { const [badges, setBadges] = React.useState(props.badges); + + // keep badges in sync when route changes from one user profile to another + React.useEffect(() => { + setBadges(props.badges); + }, [props.badges]); + const [bigBadge, ...smallBadges] = badges; if (!bigBadge) return null;