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

Add Send Direct 1.2 and 1.3 Implementation #142

Merged
merged 2 commits into from
Sep 30, 2024
Merged

Add Send Direct 1.2 and 1.3 Implementation #142

merged 2 commits into from
Sep 30, 2024

Conversation

akanuri9
Copy link
Contributor

No description provided.

errors = { ...errors, [name]: 'Please enter a valid email' }
errors[name] = 'This field is required'
} else if (name === 'toAddress') {
if (!/^[a-zA-Z0-9._:$!%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]+$/.test(value)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this is the only place we use or would want email validation, so, it seems like we should either:
a) Provide a shared function
b) Use an existing API

@drbgfc drbgfc changed the title Send Direct 1.2 and 1.3 Implementation Add Send Direct 1.2 and 1.3 Implementation Sep 30, 2024
@drbgfc drbgfc merged commit c17e83f into dev Sep 30, 2024
3 checks passed
@drbgfc drbgfc deleted the anusha-send-direct branch September 30, 2024 21:39
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