From 39a63c24aab00bef4ab0113c4f333174d4d31b3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vikt=C3=B3ria=20Brezinov=C3=A1?= Date: Sat, 13 Apr 2024 10:14:27 +0200 Subject: [PATCH] fix disabled when not authed --- src/components/Problems/Problem.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Problems/Problem.tsx b/src/components/Problems/Problem.tsx index 5d5d3dae..3554cda1 100644 --- a/src/components/Problems/Problem.tsx +++ b/src/components/Problems/Problem.tsx @@ -53,9 +53,9 @@ export const Problem: FC<{ const handleUploadClick = () => { if (!isAuthed) { displayLoginDialog() - } else if (!registered && canRegister) { + } else if (!registered) { displayRegisterDialog() - } else if (registered) { + } else { setDisplayProblemUploadForm((prevState) => !prevState) setDisplayActions(false) } @@ -121,7 +121,7 @@ export const Problem: FC<{ -