Skip to content

Commit

Permalink
chore: Use Avatar type from schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinszuchet committed Jan 23, 2025
1 parent 7f16869 commit acf577c
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/logic/profiles.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
import { Entity } from '@dcl/schemas'

type Avatar = {
userId: string
name: string
hasClaimedName: boolean
snapshots: {
face256: string
}
}
import { Entity, Avatar } from '@dcl/schemas'

export function getProfileAvatar(profile: Pick<Entity, 'metadata'>): Avatar {
const [avatar] = profile.metadata.avatars
Expand Down

0 comments on commit acf577c

Please sign in to comment.