Skip to content

Commit

Permalink
fix /ecosystem page crash (#2095)
Browse files Browse the repository at this point in the history
  • Loading branch information
olaszakos authored Oct 31, 2023
1 parent b5af59c commit 9d65d34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
14 changes: 1 addition & 13 deletions showcase.json
Original file line number Diff line number Diff line change
Expand Up @@ -2828,19 +2828,7 @@
"submittableId": "35648608",
"videoContentType": "video/mp4"
},
{
"id": "fishverse",
"name": "FishVerse",
"description": "FishVerse is a revolutionary W2E fishing game that is open world, decentralized and built on ICP technology. It brings together fishing and GameFi enthusiasts inside of a vibrant community where people can monetize by catching and utilizing NFT fishes, competing in tournaments, missions, providing services and more...",
"website": "https://thefishverse.com/",
"logo": "/img/showcase/fishverse_logo.webp",
"screenshots": [
"/img/showcase/fishverse_screenshot.webp"
],
"video": "/img/showcase/canister-store_video.mp4",
"videoContentType": "video/mp4",
"submittableId": "35750450"
},

{
"id": "Faceless",
"name": "Faceless Project",
Expand Down
4 changes: 2 additions & 2 deletions src/pages/ecosystem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ function ShowcasePage(): JSX.Element {
let filteredProjects = projects;
if (queryTagInitialized && queryTag?.length > 0) {
filteredProjects = filteredProjects.filter((p) =>
p.tags.find((tag) => tag == queryTag)
(p.tags || []).find((tag) => tag == queryTag)
);
}
setFilteredProjects(sortDesktopProjects(filteredProjects));
Expand Down Expand Up @@ -335,7 +335,7 @@ function ShowcasePage(): JSX.Element {
{projects.length}
</PillSecondaryLabel>
</Pill>
{tags.map(([tag, count]) => (
{(tags || []).map(([tag, count]) => (
<Pill
isActive={tag === queryTag}
onClick={() => setQueryTag(tag)}
Expand Down

0 comments on commit 9d65d34

Please sign in to comment.