diff --git a/api/src/services/did.js b/api/src/services/did.js index 3b03d15a..079ce4b5 100644 --- a/api/src/services/did.js +++ b/api/src/services/did.js @@ -318,7 +318,7 @@ export class DIDService { const wallet = did.split(":").slice(-1).pop(); const ensProfile = await getENSProfileByWallet(wallet); if (ensProfile) { - if (ensProfile.image.startsWith(`ipfs://`)) { + if (ensProfile.image && ensProfile.image.startsWith(`ipfs://`)) { ensProfile.image = ensProfile.image.replace( `ipfs://`, `https://ipfs.io/ipfs/`,