setting default value for history

This commit is contained in:
nikolabjelo committed 2019-06-03 19:47:03 +02:00
1 parent 1a60bc0c92
commit 0cf7f03192
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) => {