Fix various issues in the frontend (fix #197 & fix #192) #200

Merged
cami merged 5 commits from frontend/fix-paste-errormessage into main 2021-07-22 23:07:21 +00:00
2 changed files with 5 additions and 2 deletions
Showing only changes of commit 1d0f898fc9 - Show all commits

View file

@ -9,7 +9,7 @@ export default function GeneratedPassword(props) {
return (
<>
<p onCopy={handleOnCopyEvent}>
<p>
Das Passwort für diese Situation lautet:{" "}
<span className="generated-password">{props.genPassword}</span>
</p>

View file

@ -75,6 +75,10 @@ export default function Study() {
e.preventDefault();
return false;
};
const handleOnCopyEvent = (e) => {
e.preventDefault();
return false;
};
const checkIfUsernameIsCorrect = () => {
return serverUsername === username;
@ -96,7 +100,6 @@ export default function Study() {
};
const checkIfValuesAreCorrect = () => {
console.log(checkIfPasswordIsCorrect());
return checkIfPasswordIsCorrect() && checkIfUsernameIsCorrect();
};