From 1ba8c3feb9ed8787df5ce572be205286785fe500 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Thu, 13 Aug 2026 10:16:03 +0300 Subject: [PATCH] skip getProfile if no did --- .../verification/useUpdateProfileVerificationCache.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/state/queries/verification/useUpdateProfileVerificationCache.ts b/src/state/queries/verification/useUpdateProfileVerificationCache.ts index 5a9d870d85..08da1244c5 100644 --- a/src/state/queries/verification/useUpdateProfileVerificationCache.ts +++ b/src/state/queries/verification/useUpdateProfileVerificationCache.ts @@ -20,8 +20,12 @@ export function useUpdateProfileVerificationCache() { return useCallback( async ({profile}: {profile: bsky.profile.AnyProfileView}) => { try { + if (!profile.did) { + logger.warn(`useUpdateProfileVerificationCache: no did`, {profile}) + return + } const updated = await client.call(app.bsky.actor.getProfile, { - actor: (profile.did ?? '') as DidString, + actor: profile.did as DidString, }) updateProfileShadow(qc, profile.did, { verification: updated.verification,