Reset builder when resetting the output

This commit is contained in:
2023-10-31 19:57:59 +01:00
parent 9509fe4670
commit fc4e57cb0b

View File

@@ -8,6 +8,7 @@ const light = document.getElementById('light') as HTMLDivElement;
const keypad = document.getElementById('keypad') as HTMLDivElement;
function resetCode() {
builder = '';
display.innerText = '_'.repeat(CODE.length);
light.classList.remove('is-success', 'is-error');
}