Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Pluralize 'email' in sharing dialog message

Richie McIlroy763e640b670f
diff --git a/apps/web/app/(org)/dashboard/caps/components/SharingDialog.tsx b/apps/web/app/(org)/dashboard/caps/components/SharingDialog.tsx
index c6d204b02..6dac2c825 100644
--- a/apps/web/app/(org)/dashboard/caps/components/SharingDialog.tsx
+++ b/apps/web/app/(org)/dashboard/caps/components/SharingDialog.tsx
@@ -349,7 +349,7 @@ export const SharingDialog: React.FC<SharingDialogProps> = ({
{!publicToggle
? "Only people with access can view"
: allowedEmailDomain?.trim()
- ? `Only users with ${allowedEmailDomain.trim()} can view`
+ ? `Only users with matching ${allowedEmailDomain.trim().includes(",") ? "emails" : "email"} can view`
: "Anyone on the internet with the link can view"}
</p>
</div>