Skip to content

Commit

Permalink
fix: add a hotfix for 3lau basics (decentraland#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosantangelo authored Dec 23, 2020
1 parent 4bd46d2 commit 4e93ba4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webapp/src/components/NFTImage/NFTImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,16 @@ const NFTImage = (props: Props) => {
const backgroundImage = `radial-gradient(${
RARITY_COLOR_LIGHT[wearable!.rarity]
}, ${RARITY_COLOR[wearable!.rarity]})`
// HOTFIX: this is only needed for a short time, while thegraph indexes the blockchain using the correct name
const image = nft.image.replace('threelau_basics', '3lau_basics')
return (
<div
className="rarity-background"
style={{
backgroundImage
}}
>
<img alt={getNFTName(nft)} className="image" src={nft.image} />
<img alt={getNFTName(nft)} className="image" src={image} />
</div>
)
}
Expand Down

0 comments on commit 4e93ba4

Please sign in to comment.