Commit 0150d3d8 authored by jang dong hyeok's avatar jang dong hyeok
Browse files

불필요한 차트관련 코드삭제 및 빈 질문일때 작성되지 않게하기

parent c0481dda
export { CirclesWithG } from "./CirclesWithG";
......@@ -18,10 +18,17 @@ 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 {
question.isEditing = false;
console.log("editing completed:", question);
handleQuestion(question);
}
});
}
function handleSelect(event: React.ChangeEvent<HTMLSelectElement>) {
const selectedType = event.currentTarget.value;
......
......@@ -59,6 +59,7 @@ export interface IRadio extends IQuestionData {
content: IBasicContent & {
hasOther: boolean;
otherText: string;
};
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment