diff --git a/src/components/layouts/Dashboard/CallWidget/CallWidgetDialog/CallTabs/CallTabPanel/CallActions/index.jsx b/src/components/layouts/Dashboard/CallWidget/CallWidgetDialog/CallTabs/CallTabPanel/CallActions/index.jsx index b2dc9de..f93ad56 100644 --- a/src/components/layouts/Dashboard/CallWidget/CallWidgetDialog/CallTabs/CallTabPanel/CallActions/index.jsx +++ b/src/components/layouts/Dashboard/CallWidget/CallWidgetDialog/CallTabs/CallTabPanel/CallActions/index.jsx @@ -9,7 +9,7 @@ import {useState} from "react"; import {Stack} from "@mui/material"; function CallActions({tab}) { - const [description, setDescription] = useState('') + const [description, setDescription] = useState() const requestServer = useRequest({auth: true}); const {closeAnswerTab} = useAnswers(); @@ -20,9 +20,6 @@ function CallActions({tab}) { subcategory_id, description }, - success: { - notification: {show: true}, - }, }) .then(() => { closeAnswerTab(tab.id); diff --git a/src/lib/callWidget/contexts/answers.jsx b/src/lib/callWidget/contexts/answers.jsx index ac6d4cc..139ba88 100644 --- a/src/lib/callWidget/contexts/answers.jsx +++ b/src/lib/callWidget/contexts/answers.jsx @@ -49,7 +49,13 @@ export const AnswersProvider = ({children}) => { categoryLists: [], subCategoryLists: [], }); - const [state, dispatch] = useReducer(reducer, []); + const [state, dispatch] = useReducer(reducer, [{ + id: 1, + phone_number: '09134849737', + date: new Date(), + active: true, + active_category_id: 1, + }]); useEffect(() => { requestServer(GET_CATEGORY, "get")