From 2c15c6386e7de838983c00acf29a10b7a9ea4757 Mon Sep 17 00:00:00 2001 From: funcsom Date: Mon, 31 Mar 2025 11:11:36 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20fix:=20linkUserReservation?= =?UTF-8?q?=20API=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/authorization/linkUserReservation.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/api/authorization/linkUserReservation.ts b/src/api/authorization/linkUserReservation.ts index 89275d7a..066ef369 100644 --- a/src/api/authorization/linkUserReservation.ts +++ b/src/api/authorization/linkUserReservation.ts @@ -3,7 +3,9 @@ import API from '../axiosIntance'; export const linkUserReservation = async (phone: string) => { try { const response = await API.post('/reservation/link-user', { - phone: phone, + params: { + phone: phone, + }, }); return response.data; From 9f1b958a3f2e492f7af8d5ab7e7b46a6fe0f5def Mon Sep 17 00:00:00 2001 From: funcsom Date: Mon, 31 Mar 2025 11:24:25 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=90=9B=20fix:=20=EB=B3=B8=EC=9D=B8?= =?UTF-8?q?=EC=9D=B8=EC=A6=9D=20=EC=95=88=EB=90=9C=20=EC=82=AC=EB=9E=8C?= =?UTF-8?q?=EC=9D=B4=20dashboard=EB=A1=9C=20=EB=84=98=EC=96=B4=EA=B0=80?= =?UTF-8?q?=EB=8A=94=EA=B2=83=EC=9D=84=20=EB=A7=89=EA=B8=B0=20=EC=9C=84?= =?UTF-8?q?=ED=95=9C=20=EC=BD=94=EB=93=9C=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/PrivateRoute.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/routes/PrivateRoute.tsx b/src/routes/PrivateRoute.tsx index cdcc9156..d863b105 100644 --- a/src/routes/PrivateRoute.tsx +++ b/src/routes/PrivateRoute.tsx @@ -1,15 +1,15 @@ -import { Navigate, Outlet, useLocation } from 'react-router-dom'; +import { Navigate, Outlet } from 'react-router-dom'; import { useAuthStore } from '../store/useAuthStore'; export default function PrivateRoute({ role }: { role: 'USER' | 'ADMIN' }) { const { userInfo } = useAuthStore(); - const location = useLocation(); + // const location = useLocation(); if (!userInfo) return ; - if (!userInfo.phone && location.pathname !== '/authorization/callback') { - return ; - } + // if (!userInfo.phone && location.pathname !== '/authorization/callback') { + // return ; + // } if (userInfo.role !== role) { return (