Skip to content

Commit b565f1e

Browse files
committed
feat: 베팅 관리자 페이지 베팅 취소 시 세션값 삭제 기능 구현
- 기존에 베팅 관리자 페이지에서 베팅 취소를 눌러도 세션값이 삭제가 되지 않아 문제 발생 - 베팅 취소 버튼을 누르면 세션값이 삭제되도록 코드를 추가하여 문제 해결
1 parent 4471aeb commit b565f1e

File tree

1 file changed

+2
-2
lines changed
  • frontend/src/features/betting-page-admin

1 file changed

+2
-2
lines changed

frontend/src/features/betting-page-admin/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ function BettingPageAdmin() {
164164

165165
const handleCancelClick = async () => {
166166
refund(roomId)
167-
.then((data) => {
168-
console.log("API 성공 결과:", data);
167+
.then(() => {
168+
sessionStorage.removeItem("userInfo");
169169
navigate({
170170
to: "/my-page",
171171
});

0 commit comments

Comments
 (0)