Skip to content

Commit

Permalink
Merge pull request #70 from Kusitms-29th-ASAP/fix/#69
Browse files Browse the repository at this point in the history
[Fix] 회원가입 로직 수정
  • Loading branch information
yyypearl authored May 21, 2024
2 parents 3ec96fc + f9b6069 commit b833d79
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/app/signin/process3-1/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Process3_1 = () => {
const [openclassNumPopup, setOpenclassNumPopup] = useState(false);

const [grade, setGrade] = useState<null | number>(null);
const [classNum, setClassNum] = useState<null | number>(null);
const [classNum, setClassNum] = useState<string>("");

const name = studentName.substr(1, 3);
const router = useRouter();
Expand All @@ -36,7 +36,7 @@ const Process3_1 = () => {
const updateChildren = user.children.map((child) => ({
...child,
elementSchoolGrade: GRADE[grade!! - 1],
elementSchoolClass: classNum,
elementSchoolClassNumber: "1", // 임시
}));

dispatch(
Expand Down Expand Up @@ -66,7 +66,7 @@ const Process3_1 = () => {
setOpenGradePopup(false);
};

const handleSelectclassNum = (selectedclassNum: number) => {
const handleSelectclassNum = (selectedclassNum: string) => {
setClassNum(selectedclassNum);
setOpenclassNumPopup(false);
};
Expand Down
2 changes: 1 addition & 1 deletion src/app/signin/process3/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const SigninProcess3 = () => {
const handleNextButtonClick = () => {
const updateChildren = user.children.map((child) => ({
...child,
elementSchoolId: 1,
elementSchoolId: 566, // 임시
elementSchoolGrade: grade,
}));

Expand Down
2 changes: 1 addition & 1 deletion src/app/signin/process4/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const SigninProcess4 = () => {
);

const User: PostUserRequest = {
registrationToken: auth.registerToken,
registrationToken: `Bearer ${auth.registerToken}`,
agreement: user.agreement,
phoneNumber: user.phoneNumber,
children: updateChildren,
Expand Down
2 changes: 1 addition & 1 deletion src/components/signin/SelectionPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { GradeData } from "@/data/studentData";

interface SelectionPopupProps {
onClose: () => void;
onSelect: (value: number) => void;
onSelect: (value: any) => void;
selectionList: number[];
}

Expand Down
2 changes: 1 addition & 1 deletion src/redux/slices/userSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const userSlice = createSlice({
name: "",
gender: "",
birth: "",
elementSchoolId: 0,
elementSchoolId: 566, // 임시
elementSchoolGrade: "",
elementSchoolClassNumber: "",
elementSchoolClassCode: "",
Expand Down

0 comments on commit b833d79

Please sign in to comment.