Skip to content

Commit

Permalink
Delete : error toast in SESSION_ERROR
Browse files Browse the repository at this point in the history
  • Loading branch information
oikkoikk committed Oct 13, 2023
1 parent 5ef83e7 commit d40d4a9
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/app/@modal/(.)search/[lecture_code]/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export default function ErrorHandler({
setErrorToast(error);
router.back();
} else if (error.cause === SESSION_ERROR) {
setErrorToast(error);
logout();
} else {
setErrorToast(new Error(ErrorMessage.DEFAULT));
Expand Down
1 change: 0 additions & 1 deletion src/app/dashboard/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export default function ErrorHandler({
if (error.cause === API_FETCH_ERROR) {
setErrorToast(error);
} else if (error.cause === SESSION_ERROR) {
setErrorToast(error);
logout();
} else {
setErrorToast(new Error(ErrorMessage.DEFAULT));
Expand Down
1 change: 0 additions & 1 deletion src/app/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export default function ErrorHandler({
setErrorToast(error);
router.back();
} else if (error.cause === SESSION_ERROR) {
setErrorToast(error);
logout();
} else {
setErrorToast(new Error(ErrorMessage.DEFAULT));
Expand Down
1 change: 0 additions & 1 deletion src/app/search/[lecture_code]/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export default function ErrorHandler({
router.replace('/');
router.refresh();
} else if (error.cause === SESSION_ERROR) {
setErrorToast(error);
logout();
} else {
setErrorToast(new Error(ErrorMessage.DEFAULT));
Expand Down

0 comments on commit d40d4a9

Please sign in to comment.