diff --git a/src/components/modals/main/marketplace/Items.jsx b/src/components/modals/main/marketplace/Items.jsx index 80e43796..ec318562 100644 --- a/src/components/modals/main/marketplace/Items.jsx +++ b/src/components/modals/main/marketplace/Items.jsx @@ -60,40 +60,37 @@ function Items({ item.author.toLowerCase().includes(filter.toLowerCase()) || item.type.toLowerCase().includes(filter.toLowerCase()), ) - .map((item) => { - console.log(item, item.type.split('_')[0].endsWith('s') - ? item.type.split('_')[0] - : item.type.split('_')[0] + 's'); return ( + .map((item) => (
toggleFunction(item)} key={item.name}> - - icon -
- {item.display_name || item.name} - {variables.getMessage('modals.main.marketplace.by', {author: item.author})} - { + + icon +
+ {item.display_name || item.name} + {variables.getMessage('modals.main.marketplace.by', { author: item.author })} + { type === 'all' && !onCollection ? - {variables.getMessage(`modals.main.addons.create.types.${ - item.type.split('_')[0] === "preset" - ? "settings" - : item.type.split('_')[0] + 's' + {variables.getMessage(`modals.main.addons.create.types.${item.type.split('_')[0] === "preset" + ? "settings" + : item.type.split('_')[0] + 's' }`)} - - : null} - + + : null + }
- )})} + ))}
{type === 'all' && !onCollection ? (