From 114b5f6effa3de813e047ee6b702a674e6ad07d5 Mon Sep 17 00:00:00 2001 From: rinpatch Date: Fri, 9 Aug 2019 12:26:58 +0000 Subject: [PATCH] Apply suggestion to src/services/follow_manipulate/follow_manipulate.js --- src/services/follow_manipulate/follow_manipulate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/follow_manipulate/follow_manipulate.js b/src/services/follow_manipulate/follow_manipulate.js index 26733e26..529fdb9b 100644 --- a/src/services/follow_manipulate/follow_manipulate.js +++ b/src/services/follow_manipulate/follow_manipulate.js @@ -6,7 +6,7 @@ const fetchUser = (attempt, user, store) => new Promise((resolve, reject) => { .catch((e) => reject(e)) }, 500) }).then(([following, sent, locked, attempt]) => { - if (!following && !locked && attempt <= 3) { + if (!following && !(locked && sent) && attempt <= 3) { // If we BE reports that we still not following that user - retry, // increment attempts by one return fetchUser(++attempt, user, store)