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

Don't specify phone number in prefill test data #22

Merged
merged 2 commits into from
Mar 27, 2020

Conversation

wcai-circle
Copy link
Contributor

Fixes prefill data causing an invalid phone format error on the POST /cards endpoint

@@ -15,7 +15,7 @@ export const exampleCards = [
line2: '',
city: 'Test City',
postalCode: '11111',
phone: '',
Copy link
Contributor

@tsuikm tsuikm Mar 27, 2020

Choose a reason for hiding this comment

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

is it possible to just delete the phone since it's an optional field?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a better idea, will do

Note that when prefilled, phone is undefined, but editing the phone field causes it to be defined again.
@wcai-circle wcai-circle changed the title Specify default phone number in prefill test data Don't specify phone number in prefill test data Mar 27, 2020
Copy link
Contributor

@grantmike grantmike left a comment

Choose a reason for hiding this comment

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

Looks good

@grantmike
Copy link
Contributor

i restarted build, give it a few mins

@tsuikm tsuikm merged commit 55866f5 into circlefin:master Mar 27, 2020
@wcai-circle wcai-circle deleted the specify-phone-in-prefill branch March 30, 2020 14:41
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.

3 participants