Skip to content

Commit

Permalink
[Fix]/#43- post 완료 전 라우팅 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaem03 authored Nov 13, 2024
2 parents 8bf37d1 + c6918c5 commit 7633922
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/nuguIntro/NuguIntro.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Layout $margin="4rem 0 0 0" $justifyContent="start">
Expand Down
4 changes: 3 additions & 1 deletion src/pages/nuguIntro/WriteIntro.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ export const WriteIntro = () => {
keyword3,
uuid,
});
navigate(-1);
if (response) {
navigate(-1);
}
return response;
} catch (err) {
throw err;
Expand Down

0 comments on commit 7633922

Please sign in to comment.