diff --git a/src/app/workshop/page.tsx b/src/app/workshop/page.tsx index abfa737..81aab81 100644 --- a/src/app/workshop/page.tsx +++ b/src/app/workshop/page.tsx @@ -83,7 +83,7 @@ export default function Home() { skinViewer.loadBackground("/static/background.png").then(() => asyncImage('/static/workshop_base.png').then((base_skin) => { Promise.all(data.data.map(async (el) => { try { - const result = await generateSkin(el.base64, base_skin, el.categories.some(val => val.id == 3)) + const result = await generateSkin(el.base64, base_skin, el.categories.some(val => val.id === Number(process.env.NEXT_PUBLIC_COLORABLE_ID))) await skinViewer.loadSkin(result, { model: 'default' }); skinViewer.render(); const image = skinViewer.canvas.toDataURL(); @@ -111,26 +111,25 @@ export default function Home() {
- - {elements && elements.length > 0 ? {elements} : + {elements && elements.length > 0 && } + {elements && elements.length > 0 ? + {elements} : elements && elements.length === 0 ? - <> -

- - Похоже, тут ничего нет -

- : +

+ + Похоже, тут ничего нет +

: } - + {elements && elements.length > 0 && }