Commit 4546ca31 authored by yann300's avatar yann300

fix loading ballot contract

parent 76c46ac1
......@@ -106,7 +106,7 @@ var run = function () {
})
// insert ballot contract if there are no files available
if (!loadingFromGist && (files.list().length === 0)) {
if (!loadingFromGist && Object.keys(files.list()).length === 0) {
files.set(examples.ballot.name, examples.ballot.content)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment