summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2024-02-24 17:16:28 -0600
committerHombreLaser <sebastian-440@live.com>2024-02-24 17:16:28 -0600
commit200daeaaee448079febcd3304abf61465145303d (patch)
tree11b590a888edefaa9c91b8cca11fa7686b5d7aa5
parenta0ff547c4bd4361f60baf2d82d511a291b5996ff (diff)
Improve replies variable name
-rw-r--r--static/js/controllers/replies_controller.js6
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;
}