From c6918c5fd5cc8ab0b78d03ed7cd4994e16265448 Mon Sep 17 00:00:00 2001 From: chaem03 Date: Wed, 13 Nov 2024 17:56:40 +0900 Subject: [PATCH] =?UTF-8?q?[Fix]-=20post=20=EC=99=84=EB=A3=8C=20=EC=A0=84?= =?UTF-8?q?=20=EB=9D=BC=EC=9A=B0=ED=8C=85=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/nuguIntro/NuguIntro.jsx | 2 +- src/pages/nuguIntro/WriteIntro.jsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/nuguIntro/NuguIntro.jsx b/src/pages/nuguIntro/NuguIntro.jsx index 984dcc6..73655d1 100644 --- a/src/pages/nuguIntro/NuguIntro.jsx +++ b/src/pages/nuguIntro/NuguIntro.jsx @@ -32,7 +32,7 @@ export const NuguIntro = () => { const isNuguIntro = introList && introList.length > 0 ? introList : null; const moveOnintro = () => { - navigate("/intro/write"); + navigate(`/nuguIntro/write/${uuid}`); }; return ( diff --git a/src/pages/nuguIntro/WriteIntro.jsx b/src/pages/nuguIntro/WriteIntro.jsx index 4688b64..1b60c40 100644 --- a/src/pages/nuguIntro/WriteIntro.jsx +++ b/src/pages/nuguIntro/WriteIntro.jsx @@ -34,7 +34,9 @@ export const WriteIntro = () => { keyword3, uuid, }); - navigate(-1); + if (response) { + navigate(-1); + } return response; } catch (err) { throw err;