Skip to content

Commit

Permalink
chore: 리다이렉트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
bottlewook committed Mar 4, 2024
1 parent ca03f8a commit ebea925
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/app/(car-details)/car-details/hydrated-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ function CarDetailsPage() {
if (step === 1) {
// eslint-disable-next-line @typescript-eslint/no-floating-promises
router.push('/my-page');
} else {
setStep((currentStep) => { return currentStep - 1; });
}
setStep((currentStep) => { return currentStep - 1; });
}, [router, step]);

// eslint-disable-next-line @typescript-eslint/require-await
Expand Down
3 changes: 2 additions & 1 deletion src/app/(car-details)/car-wash-details/hydrated-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ function CarWashDetailsPage() {
if (step === 1) {
// eslint-disable-next-line @typescript-eslint/no-floating-promises
router.push('/my-page');
} else {
setStep((currentStep) => { return currentStep - 1; });
}
setStep((currentStep) => { return currentStep - 1; });
}, [router, step]);

// eslint-disable-next-line @typescript-eslint/require-await
Expand Down

0 comments on commit ebea925

Please sign in to comment.