From d220f86cb833f08cfa187865ef7adda70d0b72c4 Mon Sep 17 00:00:00 2001 From: cami Date: Sat, 24 Jul 2021 01:10:40 +0200 Subject: [PATCH] Remove the input if someone typed the wrong password --- frontend/src/components/pages/Study.jsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/pages/Study.jsx b/frontend/src/components/pages/Study.jsx index 2694809..a9e0ca1 100644 --- a/frontend/src/components/pages/Study.jsx +++ b/frontend/src/components/pages/Study.jsx @@ -115,10 +115,11 @@ export default function Study() { }; const resetInputValues = () => { - let inputElements = document.querySelectorAll('div input:not([type="submit"])'); - for (let i=0; i < inputElements.length; i++){ - inputElements[i].value = "" - + let inputElements = document.querySelectorAll( + 'div input:not([type="submit"])' + ); + for (let i = 0; i < inputElements.length; i++) { + inputElements[i].value = ""; } }; -- 2.45.2