Skip to content
TypeScript

fix(mobile): use singular label for one settings environment (#12282)

Julius Marminge818add08fcd7
diff --git a/apps/mobile/src/features/settings/components/SettingsEnvironmentFilterHeader.tsx b/apps/mobile/src/features/settings/components/SettingsEnvironmentFilterHeader.tsx
index 2c87f0c7182..3ba20a8b05c 100644
--- a/apps/mobile/src/features/settings/components/SettingsEnvironmentFilterHeader.tsx
+++ b/apps/mobile/src/features/settings/components/SettingsEnvironmentFilterHeader.tsx
@@ -50,7 +50,7 @@ export function SettingsEnvironmentFilterHeader(props: { readonly closeSettings?
label:
selectedIds === null
? "All environments"
- : `${selectedTargets.length} environments`,
+ : `${selectedTargets.length} ${selectedTargets.length === 1 ? "environment" : "environments"}`,
items: [
{
type: "action",