Skip to content

Commit

Permalink
refactor: improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
dewanakl committed Dec 31, 2024
1 parent bc055a4 commit c6c811b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ export const comment = (() => {
let tracker = null;
let showHide = null;

const changeButton = (id, disabled) => document.querySelector(`[data-button-action="${id}"]`).childNodes.forEach((e) => e.disabled = disabled);
const changeButton = (id, disabled) => {
document.querySelector(`[data-button-action="${id}"]`).childNodes.forEach((e) => {
e.disabled = disabled;
});
};

const remove = async (button) => {
if (!confirm('Are you sure?')) {
Expand Down

0 comments on commit c6c811b

Please sign in to comment.