diff --git a/src/app/trending/components/profile.tsx b/src/app/trending/components/profile.tsx index cddf356c..67d02da0 100644 --- a/src/app/trending/components/profile.tsx +++ b/src/app/trending/components/profile.tsx @@ -19,7 +19,7 @@ export function Profile({ data }: { data: any }) { const embedProfile = data.profile ? JSON.parse(data.profile.content) : null; const profile = embedProfile; - const { userFollows, follow, unfollow } = useSocial(); + const { status: socialStatus, userFollows, follow, unfollow } = useSocial(); const [followed, setFollowed] = useState(false); @@ -83,7 +83,18 @@ export function Profile({ data }: { data: any }) {
- {!followed ? (): ()} + {socialStatus === "loading" ? ( + + ) : followed ? ( + + ) : ( + + )}