2 parents b04fd02 + cfac6d6 commit 46389d8Copy full SHA for 46389d8
1 file changed
addons/paint-round-corners/userscript.js
@@ -802,7 +802,7 @@ export default async function ({ addon, msg }) {
802
if (anyToolIcon) rcIcon.className = anyToolIcon.className;
803
804
// Store the is-selected class for use when the tool activates.
805
- isSelectedClass = selectedBtn ? ([...selectedBtn.classList].find((c) => c.includes("is-selected")) ?? "") : "";
+ isSelectedClass = selectedBtn ? [...selectedBtn.classList].find((c) => c.includes("is-selected")) ?? "" : "";
806
807
// Ensure the button does not start in the selected state.
808
if (isSelectedClass) rcBtn.classList.remove(isSelectedClass);
0 commit comments