From e3fd571203a11f6c9908489539443abe96321f98 Mon Sep 17 00:00:00 2001 From: sangminlee98 Date: Mon, 15 Jul 2024 23:38:46 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20refresh=20=ED=86=A0=ED=81=B0=20=EB=A7=8C?= =?UTF-8?q?=EB=A3=8C=20=EC=8B=9C=20=EC=82=AC=EC=9A=A9=EC=9E=90=EC=97=90?= =?UTF-8?q?=EA=B2=8C=20Alert=EB=A5=BC=20=EB=B3=B4=EC=97=AC=EC=A3=BC?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EB=8F=84=EB=A1=9D=20catch=EB=AC=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/reissue.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/apis/reissue.ts b/src/apis/reissue.ts index be0d7e8..973a4d3 100644 --- a/src/apis/reissue.ts +++ b/src/apis/reissue.ts @@ -1,8 +1,5 @@ -import axios, { AxiosError } from 'axios'; -import { - ApiResponseType, - ApiResponseWithDataType, -} from '@/types/apiResponseType'; +import axios from 'axios'; +import { ApiResponseWithDataType } from '@/types/apiResponseType'; export const reissue = async () => { try { @@ -16,6 +13,6 @@ export const reissue = async () => { ); return data; } catch (err) { - alert((err as AxiosError).response?.data.message); + console.error(err); } };