catch 수정 및 불필요 api 삭제 api 변경 내역 수정
This commit is contained in:
@@ -14,6 +14,7 @@ import {
|
||||
} from '../model/types';
|
||||
import { useStore } from '@/shared/model/store';
|
||||
import { showAlert } from '@/widgets/show-alert';
|
||||
import { snackBar } from '@/shared/lib';
|
||||
|
||||
export const CalendarWrap = () => {
|
||||
const { t, i18n } = useTranslation();
|
||||
@@ -72,7 +73,7 @@ export const CalendarWrap = () => {
|
||||
}
|
||||
}).catch((e: any) => {
|
||||
if(e.response?.data?.error?.message){
|
||||
showAlert(e.response?.data?.error?.message);
|
||||
snackBar(e.response?.data?.error?.message);
|
||||
return;
|
||||
}
|
||||
}).finally(() => {
|
||||
|
||||
Reference in New Issue
Block a user