Skip to content

Commit

Permalink
Update did.js
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed Jun 27, 2024
1 parent eb3fc44 commit a1e3b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/services/did.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/`,
Expand Down

0 comments on commit a1e3b15

Please sign in to comment.