Fix wrong error message when loading teams

pull/1/head
yflory 2021-03-25 14:08:50 +01:00
parent da8327589e
commit 64f4f4a0ac
1 changed files with 1 additions and 1 deletions

View File

@ -547,8 +547,8 @@ define([
lastKnownHash: rosterData.lastKnownHash,
onCacheReady: function (_roster) {
if (!cache) { return; }
console.error('Corrupted roster cache, cant load this team offline', teamData);
if (_roster && _roster.error === "CORRUPTED") {
console.error('Corrupted roster cache, cant load this team offline', teamData);
if (lm && typeof(lm.stop) === "function") { lm.stop(); }
waitFor.abort();
cb({error: 'CACHE_CORRUPTED_ROSTER'});