Skip to content

Commit 981059d

Browse files
authored
Break out of follower lookup loop when applicable
1 parent 3deae04 commit 981059d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

layouts/profile/script.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,9 @@ async function renderFollowers(clear = true, cursor) {
916916
}
917917
}) : ''
918918
])));
919+
if(i >= userIds.length) {
920+
break;
921+
}
919922
let seconds = 60;
920923
loadingSortedFollowers.innerText = loadingSortedFollowers.innerText + ` (${seconds}s)`;
921924
let interval = setInterval(() => {

0 commit comments

Comments
 (0)