Fix plural vs singular for 1 organization in OrganizationsTable

pull/10616/head
Jared Scheib 2017-11-10 00:51:40 -08:00
parent f471e3960e
commit 172672c44e
1 changed files with 4 additions and 4 deletions

View File

@ -34,10 +34,10 @@ class OrganizationsTable extends Component {
const {organizations, onDeleteOrg, onRenameOrg} = this.props
const {isCreatingOrganization} = this.state
const tableTitle =
organizations.length === 1
? '1 Organizations'
: `${organizations.length} Organizations`
const tableTitle = `${organizations.length} Organization${organizations.length ===
1
? ''
: 's'}`
return (
<div className="container-fluid">