Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show opt in modal for scorecard #45

Merged
merged 4 commits into from
Oct 24, 2023
Merged

show opt in modal for scorecard #45

merged 4 commits into from
Oct 24, 2023

Conversation

mvserna
Copy link
Collaborator

@mvserna mvserna commented Oct 18, 2023

No description provided.

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #6997: Modal for Scorecard Opt Iin.

src/components/scorecard/ScorecardOptInForm.tsx Outdated Show resolved Hide resolved
import { z } from "zod";

export const scorecardOptInSchema = z.object({
firstName: z.string().nonempty(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the nonempty here should also be applied to email and it should appropriately show an error without your error clause in the register clause.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The .email() method already protects against empty and whitespace strings. But, I added .trim() to firstName.

Base automatically changed from sc-6996/download-scorecard to main October 19, 2023 17:01
@dpickett dpickett merged commit 1a06b15 into main Oct 24, 2023
1 check passed
@dpickett dpickett deleted the sc-6997/scorecard-modal branch October 24, 2023 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants