File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
src/app/(crew)/crew/detail/[id]/_components/gathering-detail-modal Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,15 @@ export default function GatheringDetailModalContainer({
3535 close ( ) ;
3636 onUpdate ?.( ) ;
3737 } catch ( error ) {
38- if ( error instanceof ApiError && error . status === 401 ) {
39- const redirectUrl = `/login?redirect=${ encodeURIComponent ( window . location . pathname ) } ` ;
40- router . push ( redirectUrl ) ;
41- } else {
42- showToast ( '์ฐธ์ฌ ์ค ์๋ฌ๊ฐ ๋ฐ์ํ์ต๋๋ค.' , 'error' ) ;
38+ if ( error instanceof ApiError ) {
39+ if ( error . status === 401 ) {
40+ const redirectUrl = `/login?redirect=${ encodeURIComponent ( window . location . pathname ) } ` ;
41+ router . push ( redirectUrl ) ;
42+ } else if ( error . status === 404 && error . message === 'ํฌ๋ฃจ ๋ฉค๋ฒ๊ฐ ์๋๋๋ค.' ) {
43+ showToast ( 'ํฌ๋ฃจ ๋ฉค๋ฒ๊ฐ ์๋๋๋ค. ํฌ๋ฃจ๋ฅผ ์ฐธ์ฌํด๋ณด์ธ์!' , 'error' ) ;
44+ } else {
45+ showToast ( '์ฐธ์ฌ ์ค ์๋ฌ๊ฐ ๋ฐ์ํ์ต๋๋ค.' , 'error' ) ;
46+ }
4347 }
4448 }
4549 } ;
You canโt perform that action at this time.
0 commit comments