Skip to content

Commit 42af227

Browse files
committed
🐛fix: error status 예외처리
1 parent c557f0b commit 42af227

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/app/verify/letter/page.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,8 @@ const VerifyLetter = () => {
9292
//해당 사용자가 열람 가능한 편지가 아님
9393
console.error("검증 실패:", error);
9494
router.push(`/error/letter`);
95-
} else if (error.status === 400) {
96-
//편지가 존재하지 않음
97-
router.push(`/error`);
95+
} else {
96+
router.push("/error");
9897
}
9998
});
10099
}

0 commit comments

Comments
 (0)