Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
survey
Commits
aa1aeb15
Commit
aa1aeb15
authored
Mar 03, 2023
by
Jiwon Yoon
Browse files
중복회원가입 에러 메세지창, 짧은글 타입 확인 안눌리는 에러 고침
parent
0150d3d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
frontend/src/auth/OAuthRedirectHandler.tsx
View file @
aa1aeb15
...
...
@@ -33,7 +33,7 @@ export const OAuthRedirectHandler = () => {
}
}
catch
(
error
)
{
setLoading
(
false
);
catchErrors
(
error
,
setError
);
catchErrors
(
error
,
alert
);
}
};
if
(
code
)
{
...
...
frontend/src/surveys/Question.tsx
View file @
aa1aeb15
...
...
@@ -18,16 +18,27 @@ export const Question = ({
const
isEditing
=
question
.
isEditing
;
async
function
handleEditComplete
()
{
question
.
content
.
choices
.
map
((
choice
)
=>
{
if
(
choice
.
text
.
trim
()
===
""
)
{
alert
(
"
질문작성이 완료되지 않았습니다.
"
);
return
(
question
.
isEditing
=
true
);
}
else
{
if
(
question
.
content
.
choices
.
length
===
0
)
{
if
(
question
.
type
===
(
"
singletext
"
||
"
date
"
))
{
question
.
isEditing
=
false
;
console
.
log
(
"
editing completed:
"
,
question
);
handleQuestion
(
question
);
}
else
{
alert
(
"
질문작성이 완료되지 않았습니다.
"
);
return
(
question
.
isEditing
=
true
);
}
});
}
else
{
question
.
content
.
choices
.
map
((
choice
)
=>
{
if
(
choice
.
text
.
trim
()
===
""
)
{
alert
(
"
질문작성이 완료되지 않았습니다.
"
);
return
(
question
.
isEditing
=
true
);
}
else
{
question
.
isEditing
=
false
;
console
.
log
(
"
editing completed:
"
,
question
);
handleQuestion
(
question
);
}
});
}
}
function
handleSelect
(
event
:
React
.
ChangeEvent
<
HTMLSelectElement
>
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment