Passed
Push — feature/account-deletion ( 1ee561...146ac7 )
by Grant
08:02 queued 02:29
created

resources/assets/js/typeToDelete.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 7
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
c 0
b 0
f 0
dl 0
loc 7
rs 10
mnd 0
bc 0
fnc 1
bpm 0
cpm 1
noi 2
1
// Settings ===============================================
2
const emailInput = document.querySelector("#email");
0 ignored issues
show
Unused Code introduced by
The constant emailInput seems to be never used. Consider removing it.
Loading history...
3
const deleteInput = document.querySelector("#confirm_delete");
4
const deleteButton = document.querySelector("#delete_account");
5
6
deleteInput.addEventListener("keyup", () => {
7
    deleteButton.disabled = !(deleteInput.value === email.value);
0 ignored issues
show
Bug introduced by
The variable email seems to be never declared. If this is a global, consider adding a /** global: email */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
8
  });
9