Skip to content

Commit

Permalink
Fix issue where comment script events had two sets of "//" characters…
Browse files Browse the repository at this point in the history
… in title
  • Loading branch information
chrismaltby committed Sep 15, 2024
1 parent 7719f11 commit aecabd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/ui/scripting/ScriptEvents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const ScriptEventHeader = forwardRef<
onContextMenu={onContextMenu}
>
{!isComment ? (
<StyledScriptEventHeaderCaret $isOpen={isOpen && !isComment}>
<StyledScriptEventHeaderCaret $isOpen={isOpen}>
<ArrowIcon />
</StyledScriptEventHeaderCaret>
) : (
Expand Down
4 changes: 2 additions & 2 deletions src/lib/events/eventComment.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const groups = ["EVENT_GROUP_MISC"];

const autoLabel = (fetchArg, args) => {
if (args.text) {
return `// ${fetchArg("text")}`;
return fetchArg("text");
} else {
return `// ${l10n("EVENT_COMMENT")}`;
return l10n("EVENT_COMMENT");
}
};

Expand Down

0 comments on commit aecabd1

Please sign in to comment.