Skip to content

Commit 46389d8

Browse files
committed
Merge branch 'feature/paint-round-corners' of https://github.com/griffpatch/ScratchAddons into feature/paint-round-corners
2 parents b04fd02 + cfac6d6 commit 46389d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

addons/paint-round-corners/userscript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ export default async function ({ addon, msg }) {
802802
if (anyToolIcon) rcIcon.className = anyToolIcon.className;
803803

804804
// Store the is-selected class for use when the tool activates.
805-
isSelectedClass = selectedBtn ? ([...selectedBtn.classList].find((c) => c.includes("is-selected")) ?? "") : "";
805+
isSelectedClass = selectedBtn ? [...selectedBtn.classList].find((c) => c.includes("is-selected")) ?? "" : "";
806806

807807
// Ensure the button does not start in the selected state.
808808
if (isSelectedClass) rcBtn.classList.remove(isSelectedClass);

0 commit comments

Comments
 (0)