Merge pull request #743 from suttridge/develop

Contribution: Have to check for both undefined and null to prevent exceptions from stopping the trading task.
This commit is contained in:
Luis Fernando Molina authored and GitHub committed 2021-03-30 10:08:45 -04:00
commit b7271a13e0
1 file changed
+1 -1
@@ -195,7 +195,7 @@ exports.newSuperalgosBotModulesTradingRecords = function (processIndex) {
from its value property.
*/
value = targetNode.value
if (value !== undefined) {
if (value !== undefined && value !== null) {
if (recordProperty.config.decimals !== undefined) {
try {
value = Number(value.toFixed(recordProperty.config.decimals))