Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Correct pluralization

Uku Taht66ee8c84fe9d
diff --git a/assets/js/dashboard/filters.js b/assets/js/dashboard/filters.js
index 355cc846e8..492dbecc13 100644
--- a/assets/js/dashboard/filters.js
+++ b/assets/js/dashboard/filters.js
@@ -272,10 +272,11 @@ class Filters extends React.Component {
renderDropdownButton() {
if (this.state.wrapped === 2) {
+ const filterCount = appliedFilters(this.props.query).length
return (
<>
<AdjustmentsIcon className="-ml-1 mr-1 h-4 w-4" aria-hidden="true" />
- {appliedFilters(this.props.query).length} Filters
+ {filterCount} Filter{filterCount === 1 ? '' : 's'}
</>
)
}
diff --git a/assets/js/dashboard/stats/current-visitors.js b/assets/js/dashboard/stats/current-visitors.js
index 69a82d7bed..5cc4979767 100644
--- a/assets/js/dashboard/stats/current-visitors.js
+++ b/assets/js/dashboard/stats/current-visitors.js
@@ -32,7 +32,7 @@ export default class CurrentVisitors extends React.Component {
<svg className="inline w-2 mr-1 md:mr-2 text-green-500 fill-current" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
<circle cx="8" cy="8" r="8" />
</svg>
- {currentVisitors} current visitor{currentVisitors === 1 ? '' : 's'}
+ {currentVisitors} <span className="hidden sm:inline-block">current visitor{currentVisitors === 1 ? '' : 's'}</span>
</Link>
)
}