Skip to content

Commit

Permalink
remove pasted code after successful load
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-zibert committed Dec 10, 2023
1 parent d96c4a9 commit 0e92573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/PasteRegistration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ const PasteRegistration: FC = () => {

function onSubmit() {
const problem = parseTuringInfo(cardText) || parseProblemBook(cardText);
console.log(problem);
if (problem === null) {
setShowNotFound(true);
return;
}
setCardText("");
dispatch(registrationActions.updateHash(problem.code.toUpperCase()));
dispatch(roundsActions.reset());
dispatch(commentsActions.reset());
Expand Down

0 comments on commit 0e92573

Please sign in to comment.