Skip to content

Commit 7bde355

Browse files
committed
#114 [CHORE] handleCheck 재요청 방지 조건문 한 줄로 수정
1 parent 021e165 commit 7bde355

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/Onboarding/WorkspaceNameInput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ const WorkspaceNameInput = ({ onUrlGenerated }: WorkspaceNameInputProps) => {
1818
const { mutateAsync: createUrl, isPending } = usePostCreateWorkspaceUrl();
1919

2020
const handleCheck = async () => {
21-
if (isPending) return; // 중복 요청 방지
22-
if (workspaceUrl) return; // 이미 URL 있으면 재요청 막기
21+
// 중복 요청 혹은 이미 URL 있으면 재요청 막기
22+
if (isPending || workspaceUrl) return;
2323

2424
// 입력값 유효성 검사
2525
const validationError = validateWorkspaceName(workspaceName);

0 commit comments

Comments
 (0)