Skip to content

Commit

Permalink
Update app/javascript/controllers/character_counter_controller.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kitallis authored Jan 20, 2025
1 parent 7861610 commit a1be1fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/controllers/character_counter_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default class extends Controller {
}

update() {
let value = this.inputTarget.value.length
const value = this.inputTarget.value.length

if (value > this.maxLengthValue) {
this.counterTarget.classList.add(ERROR_CLASS)
Expand Down

0 comments on commit a1be1fc

Please sign in to comment.