Skip to content

Commit

Permalink
Commenting Formatting Helper: fix bug that happens on every page load (
Browse files Browse the repository at this point in the history
…close #1681)
  • Loading branch information
rafaelgomesxyz committed Dec 2, 2020
1 parent d804d7b commit 735443b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "esgst",
"version": "8.8.5",
"betaVersion": "8.8.6-beta.10",
"betaVersion": "8.8.6-beta.11",
"title": "Enhanced SteamGifts & SteamTrades (ESGST)",
"description": "A script that adds some cool features to SteamGifts and SteamTrades.",
"author": "rafaelgssa",
Expand Down
44 changes: 23 additions & 21 deletions src/modules/Comments/CommentFormattingHelper.jsx
Expand Up @@ -1659,16 +1659,18 @@ class CommentsCommentFormattingHelper extends Module {
<i
className="esgst-clickable fa fa-retweet"
title="Replace description with current reply"
onclick={this.cfh_saveReply(
reply,
savedReply.description,
this.esgst.cfh.textArea,
savedReply.name,
null,
null,
replies,
summary
)}
onclick={() =>
this.cfh_saveReply(
reply,
savedReply.description,
this.esgst.cfh.textArea,
savedReply.name,
null,
null,
replies,
summary
)
}
></i>
<i
className="esgst-clickable fa fa-edit"
Expand Down Expand Up @@ -1740,17 +1742,17 @@ class CommentsCommentFormattingHelper extends Module {
{
template: 'success',
name: 'Save',
onClick: this.cfh_saveReply.bind(
this,
reply,
description,
descriptionArea,
name,
nameArea,
popup,
replies,
summary
),
onClick: () =>
this.cfh_saveReply(
reply,
description,
descriptionArea,
name,
nameArea,
popup,
replies,
summary
),
},
{
template: 'loading',
Expand Down

0 comments on commit 735443b

Please sign in to comment.