Skip to content

Commit

Permalink
Merge pull request #2919 from owid/fix-undefined-source-bug
Browse files Browse the repository at this point in the history
🐛 fix undefined in source display in grapher
  • Loading branch information
danyx23 authored Nov 10, 2023
2 parents 5fc6a97 + e3bbd6e commit 01e3afd
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -1546,7 +1546,7 @@ export class Grapher
const uniqueAttributions = uniq(compact(attributions))

if (uniqueAttributions.length > 3)
return `${attributions[0]} and other sources`
return `${uniqueAttributions[0]} and other sources`

return uniqueAttributions.join("; ")
}
Expand Down

0 comments on commit 01e3afd

Please sign in to comment.