Skip to content

Commit

Permalink
fix: avatar schema (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
marianogoldman authored Jun 13, 2023
1 parent 3ef0086 commit e5d3906
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/platform/profile/avatar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export type Avatar = {
hasClaimedName: boolean
avatar: AvatarInfo
/**
* Whether or not the player has connected web3 wallet or is a guest user.
* Whether the player has connected web3 wallet or is a guest user.
* This is always true for deployed profiles.
*/
hasConnectedWeb3?: boolean
Expand All @@ -187,7 +187,7 @@ export type Avatar = {
export namespace Avatar {
export const schema: JSONSchema<Avatar> = {
type: 'object',
required: ['name', 'description', 'ethAddress', 'version', 'tutorialStep', 'avatar'],
required: ['name', 'description', 'ethAddress', 'version', 'tutorialStep', 'avatar', 'hasClaimedName'],
properties: {
userId: {
type: 'string'
Expand Down Expand Up @@ -237,8 +237,7 @@ export namespace Avatar {
nullable: true
},
hasClaimedName: {
type: 'boolean',
nullable: true
type: 'boolean'
},
hasConnectedWeb3: {
type: 'boolean',
Expand Down

0 comments on commit e5d3906

Please sign in to comment.