Skip to content

Commit 6425556

Browse files
authored
Merge pull request #80 from ASAP-Lettering/hotfix/#1
🐛fix: error status 예외처리 최종
2 parents 148370e + 42af227 commit 6425556

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)