diff --git a/components/Avatar.vue b/components/Avatar.vue index 3baf4a2..5214f84 100644 --- a/components/Avatar.vue +++ b/components/Avatar.vue @@ -1,13 +1,24 @@ @@ -23,7 +34,14 @@ const { data: avatar, refresh } = useLazyAsyncData(`avatar-${props.address}`, async () => { - return await abc.legacy.fetchAvatar(props.address) + const avatar = await abc.legacy.fetchAvatar(props.address) + + // CORS error with data url i guess + if (avatar && !avatar.src.startsWith('data')) { + return avatar + } + + return null }) watch(() => props.address, async () => { await refresh() }) diff --git a/components/TopNavButtons.vue b/components/TopNavButtons.vue index 3baf6f4..6cee5e7 100644 --- a/components/TopNavButtons.vue +++ b/components/TopNavButtons.vue @@ -2,6 +2,16 @@