ministryofjustice/atet

View on GitHub
app/javascript/packs/controllers/claim_form_claimant_controller.js

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 2 of 2 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

unMonitorChanges() {
this.allowPhoneOrVideoAttendanceCheckboxes().forEach((checkbox) => {
checkbox.removeEventListener('change', this.phoneOrVideoCheckboxChange.bind(this))
})
}
app/javascript/packs/controllers/claim_form_claimant_controller.js on lines 37..41

Similar blocks of code found in 2 locations. Consider refactoring.
Open

monitorChanges() {
this.allowPhoneOrVideoAttendanceCheckboxes().forEach((checkbox) => {
checkbox.addEventListener('change', this.phoneOrVideoCheckboxChange.bind(this))
})
}
app/javascript/packs/controllers/claim_form_claimant_controller.js on lines 43..47
Category
Status