Skip to content

Commit

Permalink
Merge pull request #2073 from quangbuule/patch-1
Browse files Browse the repository at this point in the history
[TextField] Fix isValid function
  • Loading branch information
oliviertassinari committed Nov 7, 2015
2 parents 4ab4d19 + dfa9216 commit 780d9a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/text-field.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const ContextPure = require('./mixins/context-pure');
* @returns True if the string provided is valid, false otherwise.
*/
function isValid(value) {
return value || value === 0;
return Boolean(value || value === 0);
}

const TextField = React.createClass({
Expand Down

0 comments on commit 780d9a5

Please sign in to comment.