From 329bc175823ea4e0507aad7387ae6561ede87c4f Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Fri, 23 Nov 2018 09:09:07 -0300 Subject: [PATCH 1/2] This error will occur for new users as they first login. --- TopSpace/Login.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TopSpace/Login.js b/TopSpace/Login.js index 5fe5bae86..a94fd7871 100644 --- a/TopSpace/Login.js +++ b/TopSpace/Login.js @@ -203,7 +203,7 @@ function newLogin() { if (err.result !== GLOBAL.DEFAULT_OK_RESPONSE.result) { - console.log("Authentication Error. " + err.message); + console.log("Please make sure you create a new team!"); return; } From 8503076bf1721cf7f0edd5db0f0882924652387a Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Fri, 23 Nov 2018 09:09:40 -0300 Subject: [PATCH 2/2] Fixing issue for cero competitions running. --- CompetitionStorage.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CompetitionStorage.js b/CompetitionStorage.js index 637efde9b..007d07253 100644 --- a/CompetitionStorage.js +++ b/CompetitionStorage.js @@ -145,6 +145,10 @@ function newCompetitionStorage(pName) { thisObject.competitorsSequences.push(fileSequences); + if (pCompetition.participants.length === 0) { //If there are no competitions, respond OK + callBackFunction(GLOBAL.DEFAULT_OK_RESPONSE); + } + } catch (err) { if (ERROR_LOG === true) { logger.write("[ERROR] initialize -> err = " + err); }