Skip to content

Commit

Permalink
fix(values): correctly init defaultValue
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbonnet committed Mar 5, 2019
1 parent 4f4839a commit 1c7077d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export function defaultProp(options) {
Sets `[name]` to `[defaultName]` if `[name]` is `nil`.
*/
const name = isString(options) ? options : options.name
const { defaultName = `initial${upperFirst(name)}` } =
const { defaultName = `default${upperFirst(name)}` } =
name === options ? EMPTY_OBJECT : options
return (Component) =>
setWrapperName(Component, function defaultProp(props) {
Expand Down

0 comments on commit 1c7077d

Please sign in to comment.