From 1e27fd1de07c2b019279210e0ff6ca679798fee4 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sat, 19 Jun 2021 11:14:53 +0200 Subject: [PATCH] Bug Fixed with snapwhot feature replacing code --- .../Bot-Modules/Trading-Bot/Low-Frequency-Trading/Snapshots.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Projects/Foundations/TS/Bot-Modules/Trading-Bot/Low-Frequency-Trading/Snapshots.js b/Projects/Foundations/TS/Bot-Modules/Trading-Bot/Low-Frequency-Trading/Snapshots.js index 10d8ecc65..35f3bf21b 100644 --- a/Projects/Foundations/TS/Bot-Modules/Trading-Bot/Low-Frequency-Trading/Snapshots.js +++ b/Projects/Foundations/TS/Bot-Modules/Trading-Bot/Low-Frequency-Trading/Snapshots.js @@ -197,7 +197,8 @@ exports.newFoundationsBotModulesSnapshots = function (processIndex) { if (nodeWithCode.code === undefined) { return } try { - let instructionsArray = nodeWithCode.code.split(' ') + const code = nodeWithCode.code + let instructionsArray = code.split(' ') for (let i = 0; i < instructionsArray.length; i++) { let instruction = instructionsArray[i] instruction = instruction.replace('(', '')