Skip to content

Commit

Permalink
default value instead schema constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
ropbla9 authored Mar 31, 2017
1 parent 810a48a commit ed6bab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/make-storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = schema => {
// console.log(schema)
const local = store.getAll()
const storage = Object.keys(schema).reduce((acc, key) => {
const value = local[key] || new schema[key]()
const value = local[key] || schema[key]
return Object.assign({ [key]: value }, acc)
}, {})
// console.log(storage)
Expand Down

0 comments on commit ed6bab8

Please sign in to comment.