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,