Skip to content

Commit 3d754a3

Browse files
committed
Fix: 알파 준비 완료
1 parent ef5a632 commit 3d754a3

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/api/oauth.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,13 @@ export const registClient = async ({
109109
}) => {
110110
try {
111111
let fileURLs = [];
112-
fileURLs = await uploadFiles(businessLogo, 'logo/');
112+
const res = await uploadFiles(businessLogo, 'logo/');
113+
fileURLs = res.data.fileURLs;
113114
const businessLogoUrl = fileURLs[0];
114-
return await PostAxiosInstance('/api/epic/businesses', {
115+
await PostAxiosInstance('/api/epic/businesses', {
115116
nickName,
116117
businessName,
117-
businessLogo: businessLogoUrl,
118+
businessLogoImg: businessLogoUrl,
118119
managerName,
119120
managerPhone,
120121
});

src/components/pages/Auth/Client/ClientInfo.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { registClient } from '../../../../api/oauth';
2020
import { useNavigate } from 'react-router-dom';
2121

2222
const ClientInfo = () => {
23-
const { setRegistPage } = useStore();
23+
const { setRegistPage, setIsLogin } = useStore();
2424
const [nickName, setNickName] = useState('');
2525
const [businessName, setBusinessName] = useState('');
2626
const [managerName, setManagerName] = useState('');
@@ -65,7 +65,7 @@ const ClientInfo = () => {
6565
managerName: managerName,
6666
managerPhone: managerPhone,
6767
});
68-
68+
setIsLogin(true);
6969
navigate('/home');
7070
} catch (e) {
7171
console.error(e);

0 commit comments

Comments
 (0)