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

Fix "Type mismatch for option" warnings #37

Merged
merged 1 commit into from
Aug 11, 2016

Conversation

byte255
Copy link
Contributor

@byte255 byte255 commented Aug 10, 2016

getConfig() returned all possible configuration options even ones that were not defined as component's properties. As a result, Stripe displayed warnings in the console about config options being undefined instead of type string, boolean, etc.

This is how it looked like in Chrome console:

image

This commit fixes this issue by skipping configuration options that haven't been defined as component's properties.

getConfig returned all possible configuration options even ones that were not defined as component's properties. As a result, Stripe displayed warnings in the console about config options being undefined instead of type string, boolean, etc.

This commit fixes this issue by skipping configuration options that haven't been defined as component's properties.
@azmenak azmenak merged commit ee81ff2 into azmenak:master Aug 11, 2016
azmenak added a commit that referenced this pull request Aug 11, 2016
This pull request was closed.
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