Skip to content

Commit 6509ff9

Browse files
authored
fix: profiles fetch without snapshots (#458)
1 parent 7513460 commit 6509ff9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/adapters/profiles.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,11 @@ export async function createProfilesComponent(
198198
...avatar.avatar,
199199
emotes: validatedEmotes,
200200
bodyShape: (await translateWearablesIdFormat(avatar.avatar.bodyShape)) ?? '',
201-
snapshots: addBaseUrlToSnapshots(entity.id, baseUrl, avatar.avatar.snapshots),
201+
snapshots: addBaseUrlToSnapshots(
202+
entity.id,
203+
baseUrl,
204+
avatar.avatar.snapshots || { face256: '', body: '' }
205+
),
202206
wearables: Array.from(new Set(validatedWearables.concat(thirdPartyWearables)))
203207
}
204208
})

0 commit comments

Comments
 (0)