Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
fix(typo): fixed typo and used locale
Browse files Browse the repository at this point in the history
  • Loading branch information
reidmeyer committed Aug 17, 2020
1 parent 6575a74 commit fd2ec69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/incidents/list/ViewIncidentsTable.tsx
Expand Up @@ -51,7 +51,9 @@ function ViewIncidentsTable(props: Props) {
const csv = parser.parse(exportData)
console.log(csv)

const filename = 'IncidenntsCSV.csv'
const incidentsText = t('incidents.label')
const filename = incidentsText.concat('.csv')

const text = csv
const element = document.createElement('a')
element.setAttribute('href', `data:text/plain;charset=utf-8,${encodeURIComponent(text)}`)
Expand Down

0 comments on commit fd2ec69

Please sign in to comment.