Skip to content

Commit d609dc3

Browse files
Upload/Main Merge #100
카카오 모달
2 parents 57cac12 + 115d122 commit d609dc3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/redux/modules/LoginSlice.jsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { createSlice, createAsyncThunk } from "@reduxjs/toolkit";
22
import { instance } from "../../shared/AxiosInstance";
33
import { LoginApi } from "../../api/LoginApi";
4-
import { useDispatch } from "react-redux";
5-
import { openModal, __openModal } from "./SingupSlice";
4+
import { __openModal } from "./SingupSlice";
65

76
//이메일 로그인
87

@@ -54,7 +53,7 @@ export const __kakaologin = createAsyncThunk(
5453
async (code, thunkAPI, setMessage, setPath, setIsModalOpen) => {
5554
try {
5655
const data = await instance
57-
.post("social/kakao-login", { code: code })
56+
.post("social/kakao-login", code)
5857
.then((res) => {
5958
const email = res.data.data.email;
6059
sessionStorage.setItem("email", email);

0 commit comments

Comments
 (0)