Skip to content

Commit

Permalink
chore: use correct naming for relatedAssetKey decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
woodenfurniture committed Jan 7, 2025
1 parent 7afaa73 commit ebc1cd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/utils/src/assetData/decodeAssetData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ export const decodeAssetData = (encodedAssetData: EncodedAssetData) => {
break
}
case 'relatedAssetKey': {
const typedValue = value as FieldToType[typeof field]
const relatedAssetId = typedValue === null ? null : sortedAssetIds[typedValue]
const assetIdx = value as FieldToType[typeof field]
const relatedAssetId = assetIdx === null ? null : sortedAssetIds[assetIdx]
// if (relatedAssetId === undefined) throw Error()
asset.relatedAssetKey = relatedAssetId
break
Expand Down

0 comments on commit ebc1cd0

Please sign in to comment.