Fixed downvoted sponsors reappearing.

This commit is contained in:
Ajay Ramachandran
2019-12-13 22:38:00 -05:00
parent a5baebab3f
commit 369364f574
3 changed files with 9 additions and 10 deletions

View File

@@ -479,7 +479,12 @@ function updatePreviewBar() {
//create an array of the sponsor types
let types = [];
for (let i = 0; i < localSponsorTimes.length; i++) {
types.push("sponsor");
if (!hiddenSponsorTimes.includes(i)) {
types.push("sponsor");
} else {
// Don't show this sponsor
types.push(null);
}
}
for (let i = 0; i < sponsorTimesSubmitting.length; i++) {
types.push("previewSponsor");