chore: code cleanup

This commit is contained in:
canove
2021-01-14 21:48:55 -03:00
parent af56447464
commit a5004eb425
7 changed files with 12 additions and 15 deletions

View File

@@ -50,15 +50,13 @@ const MainListItems = () => {
const delayDebounceFn = setTimeout(() => {
if (whatsApps.length > 0) {
const offlineWhats = whatsApps.filter(whats => {
if (
return (
whats.status === "qrcode" ||
whats.status === "PAIRING" ||
whats.status === "DISCONNECTED" ||
whats.status === "TIMEOUT" ||
whats.status === "OPENING"
)
return true;
else return false;
);
});
if (offlineWhats.length > 0) {
setConnectionWarning(true);