From 943217a5cffe47b77319537796c99e1483b0c263 Mon Sep 17 00:00:00 2001 From: Luis-Fernando-Molina Date: Wed, 5 Oct 2022 16:05:52 +0200 Subject: [PATCH] Bug Fixed --- Projects/Social-Trading/NT/Modules/Storage.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Projects/Social-Trading/NT/Modules/Storage.js b/Projects/Social-Trading/NT/Modules/Storage.js index 609d306732..ebe6953be0 100644 --- a/Projects/Social-Trading/NT/Modules/Storage.js +++ b/Projects/Social-Trading/NT/Modules/Storage.js @@ -95,6 +95,12 @@ exports.newSocialTradingModulesStorage = function newSocialTradingModulesStorage } } /* + We can not continue if we cannot identify the most up to date node. + */ + if (p2pNetworkNodeMostUpToDate === undefined){ + return + } + /* We will check that the node most up to date is not ourselves. */ if (p2pNetworkNodeMostUpToDate.node.id === thisObject.p2pNetworkNode.node.id) {