added a log when something unexpected cameback from the server

This commit is contained in:
Jack 2020-07-09 20:33:54 +01:00
parent 9921688e7d
commit c12d078b6e

View file

@ -1098,7 +1098,7 @@ function showResult(difficultyFailed = false) {
obj: completedEvent,
}).then((e) => {
accountIconLoading(false);
console.log(e.data);
console.log(JSON.stringify(e.data));
if (e.data.resultCode === -1) {
showNotification("Could not save result", 3000);
} else if (e.data.resultCode === -2) {
@ -1235,6 +1235,8 @@ function showResult(difficultyFailed = false) {
);
}
}
} else {
showNotification("Unexpected response from the server.", 4000);
}
});
});