Skip to content

Commit

Permalink
🐝 join attribution fragments with ; instead of ,
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 committed Sep 22, 2023
1 parent 0c4fa9a commit 3076289
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/@ourworldindata/grapher/src/core/Grapher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1481,7 +1481,7 @@ export class Grapher

if (uniqueAttributions.length > 3) return "Multiple sources"

return uniqueAttributions.join(", ")
return uniqueAttributions.join("; ")
}

@computed private get axisDimensions(): ChartDimension[] {
Expand Down
2 changes: 1 addition & 1 deletion packages/@ourworldindata/utils/src/Util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1754,7 +1754,7 @@ export function getAttributionFromVariable(
variable.origins
)
const sourceName = variable.source?.name
return uniq(compact([sourceName, ...originAttributionFragments])).join(", ")
return uniq(compact([sourceName, ...originAttributionFragments])).join("; ")
}

interface ETLPathComponents {
Expand Down

0 comments on commit 3076289

Please sign in to comment.