Skip to content

Fix view counts#194

Open
sebm253 wants to merge 2 commits intotypefully:mainfrom
sebm253:patch/fix-views
Open

Fix view counts#194
sebm253 wants to merge 2 commits intotypefully:mainfrom
sebm253:patch/fix-views

Conversation

@sebm253
Copy link

@sebm253 sebm253 commented Oct 29, 2023

Since the passed parameter is always something other than "off" (undefined), the view counts are always hidden:

if (setting === "off") {
viewCounts.forEach((el) => {
el.parentElement && (el.parentElement.style.display = "flex");
});
} else {
viewCounts.forEach((el) => {
el.parentElement && (el.parentElement.style.display = "none");
});
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant