cal.com icon indicating copy to clipboard operation
cal.com copied to clipboard

fix: trim email

Open shyamayadav154 opened this issue 1 year ago • 3 comments

What does this PR do?

Fixes #8732

https://www.loom.com/share/627ee565a2b74eda941eec586beb0571

Environment: Production

Type of change

Bug fix whitespace is removed before email or username validation to ensure that the system does not send a request for the same email address when there is a space present in the prefix or suffix of the email/username input.

How should this be tested?

Try to invite the same email address to the team by using space in prefix and postfix of the email address. example: {space} email {space}

Checklist

shyamayadav154 avatar May 07 '23 13:05 shyamayadav154

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 7, 2023 1:35pm

vercel[bot] avatar May 07 '23 13:05 vercel[bot]

@shyamayadav154 is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar May 07 '23 13:05 vercel[bot]

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

Two Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (350 KB)
/apps/[slug]/[...pages] 456.71 KB 607.5 KB 173.57% (🟡 +0.17%)
/auth/setup 174.65 KB 325.43 KB 92.98% (🟡 +0.16%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/-

github-actions[bot] avatar May 07 '23 13:05 github-actions[bot]

@shyamayadav154 sorry i would have to close this PR because someone else raised this PR https://github.com/calcom/cal.com/pull/8736 before you

Udit-takkar avatar May 08 '23 18:05 Udit-takkar