Commit fccec5d0 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent a2e2871f
...@@ -23,6 +23,9 @@ function initData(data, config, name) { ...@@ -23,6 +23,9 @@ function initData(data, config, name) {
data = JSON.stringify(data) data = JSON.stringify(data)
if (data.length<2)
return []
data = _.replace(data, new RegExp('Trade #', 'g'), 'id') data = _.replace(data, new RegExp('Trade #', 'g'), 'id')
data = _.replace(data, new RegExp('Profit %', 'g'), 'profit') data = _.replace(data, new RegExp('Profit %', 'g'), 'profit')
data = _.replace(data, new RegExp('Run-up %', 'g'), 'runUp') data = _.replace(data, new RegExp('Run-up %', 'g'), 'runUp')
......
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