Merge pull request #16 from nikolabjelo/develop

Setting default value for history
This commit is contained in:
nikolabjelo authored and GitHub committed 2019-06-03 19:48:23 +02:00
commit b4b1ebfe4e
1 file changed
+1
@@ -17,6 +17,7 @@ const resolve = (parent, { fbSlug, tradingSystem }) => {
tradingSystem = defaultTradingSystem;
}
tradingSystem.fbSlug = fbSlug;
tradingSystem.history = [];
const newTradingSystem = new TradingSystem(tradingSystem);
return new Promise((res, rej) => {