diff --git a/src/components/modals/main/marketplace/Items.jsx b/src/components/modals/main/marketplace/Items.jsx index e7671aa7..1e0afe72 100644 --- a/src/components/modals/main/marketplace/Items.jsx +++ b/src/components/modals/main/marketplace/Items.jsx @@ -77,8 +77,7 @@ function Items({ ) : null}
- {items - .filter( + {items?.filter( (item) => item.name.toLowerCase().includes(filter.toLowerCase()) || filter === '' || diff --git a/src/components/modals/main/marketplace/sections/Marketplace.jsx b/src/components/modals/main/marketplace/sections/Marketplace.jsx index 5ac8df33..e7c8ce57 100644 --- a/src/components/modals/main/marketplace/sections/Marketplace.jsx +++ b/src/components/modals/main/marketplace/sections/Marketplace.jsx @@ -295,7 +295,7 @@ export default class Marketplace extends PureComponent { ); }; - if (this.state.items.length === 0) { + if (this.state.items?.length === 0) { return ( <> {featured()}