Skip to content

Commit

Permalink
fix: looped emotes (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
cazala committed Sep 15, 2022
1 parent 312c107 commit d47fa51
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Item/hashes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import {
Locale,
Wearable,
Emote,
EmoteCategory,
ThirdPartyProps,
WearableCategory,
EmoteDataADR74,
} from '@dcl/schemas'
import { CollectionAttributes } from '../Collection'
import { isStandardItemPublished } from '../ItemAndCollection/utils'
Expand Down Expand Up @@ -67,6 +67,8 @@ function buildEmoteEntityMetadata(
)
}

const data = (item.data as unknown) as EmoteDataADR74

const entity: Emote = {
id: getDecentralandItemURN(item, collection.contract_address!),
name: item.name,
Expand All @@ -75,10 +77,10 @@ function buildEmoteEntityMetadata(
rarity: item.rarity!,
i18n: [{ code: Locale.EN, text: item.name }],
emoteDataADR74: {
category: (item.data.category as unknown) as EmoteCategory,
representations: item.data.representations,
tags: item.data.tags,
loop: false,
category: data.category,
representations: data.representations,
tags: data.tags,
loop: data.loop,
},
image: IMAGE_PATH,
thumbnail: THUMBNAIL_PATH,
Expand Down

0 comments on commit d47fa51

Please sign in to comment.