From feb21b3b2ac8935d924141812782e4418960c62a Mon Sep 17 00:00:00 2001 From: mj Date: Wed, 31 Jul 2024 23:42:14 +0900 Subject: [PATCH] Refactor remove duplicated error check --- frontend/src/components/modals/CreateModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/modals/CreateModal.tsx b/frontend/src/components/modals/CreateModal.tsx index 484b13fe..2942f85b 100644 --- a/frontend/src/components/modals/CreateModal.tsx +++ b/frontend/src/components/modals/CreateModal.tsx @@ -108,7 +108,7 @@ function CreateModal(props: CreateModalProps) { type="submit" variant="contained" size="large" - disabled={Boolean(errorMessage) || nickname.length < 2} + disabled={Boolean(errorMessage)} > OK