Skip to content

Commit

Permalink
Digital Carbon - Prevent duplicate methodology categories (#85)
Browse files Browse the repository at this point in the history
* Prevent duplicates on methodology category lookup

* Digital carbon staging verification workbook
  • Loading branch information
cujowolf authored Dec 7, 2023
1 parent a5a5a03 commit b398f2d
Show file tree
Hide file tree
Showing 2 changed files with 1,454 additions and 0 deletions.
4 changes: 4 additions & 0 deletions polygon-digital-carbon/src/utils/MethodologyCategories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export class MethodologyCategories {
continue
}
if (categories.length > 0) {
let category = '' + map.get(currentMethodology)
if (categories.includes(category)) {
continue
}
categories += ', '
}
categories += map.get(currentMethodology)
Expand Down
Loading

0 comments on commit b398f2d

Please sign in to comment.