From d8f69da6fdcd3d59de0f603ad739e0cff09382b1 Mon Sep 17 00:00:00 2001 From: Isaac Date: Mon, 20 May 2024 21:39:00 +0100 Subject: [PATCH] fix: marketplace "more from" --- src/features/marketplace/components/Items/Item.jsx | 4 ++-- src/features/marketplace/components/Items/Items.jsx | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/features/marketplace/components/Items/Item.jsx b/src/features/marketplace/components/Items/Item.jsx index 7162f0a9..c9512050 100644 --- a/src/features/marketplace/components/Items/Item.jsx +++ b/src/features/marketplace/components/Items/Item.jsx @@ -53,7 +53,7 @@ class Item extends PureComponent { })(); this.setState({ moreByCurator: data.items.filter( - (item) => item.type !== convertedType && item.name !== this.props.data.data.name, + (item) => item.type === convertedType && item.name !== this.props.data.data.name, ), }); console.log(this.state.curator); @@ -371,7 +371,7 @@ class Item extends PureComponent {
{item.display_name}
))} */} toggleFunction(item)} key={item.name}>
{item.display_name || item.name} - {!hideCurator ? ( + {!isCurator ? ( {variables.getMessage('modals.main.marketplace.by', { author: item.author })} @@ -60,7 +60,7 @@ function Item({ item, toggleFunction, type, onCollection, hideCurator }) { } function Items({ - hideCurator, + isCurator, type, items, collection, @@ -115,7 +115,7 @@ function Items({ ?.filter((item) => filterItems(item, filter)) .map((item) => (
- {!onCollection ? ( + {!onCollection && !isCurator ? (
{variables.getMessage('modals.main.marketplace.cant_find')}