diff --git a/src/components/ProfileSection.tsx b/src/components/ProfileSection.tsx index 227a945..16e8b0d 100644 --- a/src/components/ProfileSection.tsx +++ b/src/components/ProfileSection.tsx @@ -26,7 +26,7 @@ import { import { LoadingSpinner } from './LoadingSpinner' import { ZapPopUp } from './Zap' import placeholder from '../assets/img/DEGMods Placeholder Img.png' -import { NDKEvent } from '@nostr-dev-kit/ndk' +import { NDKEvent, NDKSubscriptionCacheUsage } from '@nostr-dev-kit/ndk' import { useProfile } from 'hooks/useProfile' type Props = { @@ -93,7 +93,9 @@ type ProfileProps = { } export const Profile = ({ pubkey }: ProfileProps) => { - const profile = useProfile(pubkey) + const profile = useProfile(pubkey, { + cacheUsage: NDKSubscriptionCacheUsage.PARALLEL + }) const displayName = profile?.displayName || profile?.name || '[name not set up]'