Skip to content

Commit

Permalink
Merge pull request #66 from robertoronderosjr/patch-1
Browse files Browse the repository at this point in the history
Fixing preview
  • Loading branch information
codeSTACKr authored Feb 2, 2022
2 parents d6ca8c3 + e0674cb commit 15b5df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const saveProjectPreviewImage = async (_data) => {
// Don't want to rely on "edition" for assuming index
for (let index = 0; index < _data.length; index++) {
const nft = _data[index];
await loadImage(`${buildDir}/images/${nft.edition}.png`).then((image) => {
await loadImage(`${buildDir}/images/${nft.custom_fields.edition}.png`).then((image) => {
previewCtx.drawImage(
image,
thumbWidth * (index % thumbPerRow),
Expand Down

0 comments on commit 15b5df0

Please sign in to comment.