Skip to content

Commit

Permalink
fix: feature - live on mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
DomWane committed Oct 10, 2024
1 parent fedcb06 commit 1c767a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions composables/useData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ export const useData = defineStore('data', () => {
percentage: Math.min(Math.max(Math.round(averagePercentage), 0), 100),
}
}).filter(p => p.name)

const projectCategories = projects.value.map(p => p.categories).flat()
categories.value = data.categories.filter(c => projectCategories.includes(c.id))
usecases.value = data.usecases
Expand Down Expand Up @@ -178,7 +177,7 @@ export const useData = defineStore('data', () => {
case 'opensource':
return project.blockchain_features?.opensource
case 'live-on-mainnet':
return project.project_phase === 'mainnet'
return project.project_status?.mainnet || project.project_status?.version?.toLowerCase() === 'mainnet'
}
}

Expand Down

0 comments on commit 1c767a5

Please sign in to comment.