Skip to content

Commit

Permalink
Merge branch 'dev' into mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed Jun 27, 2024
2 parents ddb8d95 + a1e3b15 commit 45395e1
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 45395e1

Please sign in to comment.