فهرست منبع

clean and add toasterr

zahmis 4 سال پیش
والد
کامیت
8619459b75
1فایلهای تغییر یافته به همراه2 افزوده شده و 5 حذف شده
  1. 2 5
      src/client/js/components/Admin/SlackIntegration/SlackIntegration.jsx

+ 2 - 5
src/client/js/components/Admin/SlackIntegration/SlackIntegration.jsx

@@ -79,7 +79,6 @@ const SlackIntegration = (props) => {
   }, [fetchSlackIntegrationData]);
   }, [fetchSlackIntegrationData]);
 
 
   const handleBotTypeSelect = async(clickedBotType) => {
   const handleBotTypeSelect = async(clickedBotType) => {
-    console.log('handleBot');
     if (clickedBotType === currentBotType) {
     if (clickedBotType === currentBotType) {
       return;
       return;
     }
     }
@@ -90,11 +89,9 @@ const SlackIntegration = (props) => {
         });
         });
       }
       }
       catch (error) {
       catch (error) {
-        console.log(error);
+        toastError(error);
       }
       }
-      setCurrentBotType(clickedBotType);
-
-      return;
+      return setCurrentBotType(clickedBotType);
     }
     }
 
 
     setSelectedBotType(clickedBotType);
     setSelectedBotType(clickedBotType);