@samitouri / QOS-React-2 / commits / 71e24455a3
Fork 0

The library for web and native user interfaces.

add missing argument to invariant in ReactDOMSelect

Jan Kassens committed Jul 16, 2013 at 11:33 UTC 71e24455a3556236d0dd8c90058d7d51770ad9d0
1 file changed +4 -2
src/dom/components/ReactDOMSelect.js
+4 -2
@@ -39,13 +39,15 @@ function selectValueType(props, propName, componentName) {
39 invariant(
40 Array.isArray(props[propName]),
41 'The `%s` prop supplied to <select> must be an array if `multiple` is ' +
42 - 'true.'
42 + 'true.',
43 + propName
44 );
45 } else {
46 invariant(
47 !Array.isArray(props[propName]),
48 'The `%s` prop supplied to <select> must be a scalar value if ' +
48 - '`multiple` is false.'
49 + '`multiple` is false.',
50 + propName
51 );
52 }
53 }