diff options
author | HombreLaser <sebastian-440@live.com> | 2024-02-24 17:16:28 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2024-02-24 17:16:28 -0600 |
commit | 200daeaaee448079febcd3304abf61465145303d (patch) | |
tree | 11b590a888edefaa9c91b8cca11fa7686b5d7aa5 /static | |
parent | a0ff547c4bd4361f60baf2d82d511a291b5996ff (diff) |
Improve replies variable name
Diffstat (limited to 'static')
-rw-r--r-- | static/js/controllers/replies_controller.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/static/js/controllers/replies_controller.js b/static/js/controllers/replies_controller.js index 5f767be..db836c0 100644 --- a/static/js/controllers/replies_controller.js +++ b/static/js/controllers/replies_controller.js @@ -41,11 +41,11 @@ export class RepliesController extends BaseController { /* The div to contain the comment's replies. From the element id we can get the comment's id. */ const comment_replies_section = event.target.parentElement.parentElement.parentElement; - const replies = comment_replies_section.querySelector(".replies-section"); + const present_replies = comment_replies_section.querySelector(".replies-section"); this.setCommentId(comment_replies_section); - if( replies != null) { - replies.remove(); + if( present_replies != null) { + present_replies.remove(); return; } |