fix: marketplace undefined errors

This commit is contained in:
alexsparkes 2022-10-31 08:04:03 +00:00
parent 2684277a76
commit 713e0176c7
2 changed files with 2 additions and 3 deletions

View File

@ -77,8 +77,7 @@ function Items({
</>
) : null}
<div className="items">
{items
.filter(
{items?.filter(
(item) =>
item.name.toLowerCase().includes(filter.toLowerCase()) ||
filter === '' ||

View File

@ -295,7 +295,7 @@ export default class Marketplace extends PureComponent {
);
};
if (this.state.items.length === 0) {
if (this.state.items?.length === 0) {
return (
<>
{featured()}