From efeb7894cc247f6417c986d26167e3cbc587043d Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Tue, 14 Dec 2021 09:34:03 +0300 Subject: [PATCH] Update status.js --- scripts/store/setters/status.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/scripts/store/setters/status.js b/scripts/store/setters/status.js index 463ac0d05b..6452721344 100644 --- a/scripts/store/setters/status.js +++ b/scripts/store/setters/status.js @@ -7,19 +7,5 @@ module.exports = function ({ title, status = {} }) { return Object.values(statuses).find(s => s.label === label) || statuses['online'] } - if (status) { - switch (status.code) { - case 'not_247': - case 'geo_blocked': - return status - case 'offline': - return statuses['not_247'] - case 'timeout': - return statuses['timeout'] - default: - return statuses['online'] - } - } - return status }