@@ -46,10 +46,11 @@ const CustomBotWithoutProxySettingsAccordion = ({
slackBotToken,
currentBotType,
});
- setIsRegisterSlackCredentials(false);
+ setIsRegisterSlackCredentials(true);
toastSuccess(t('toaster.update_successed', { target: t('admin:slack_integration.custom_bot_without_proxy_settings') }));
}
catch (err) {
+ setIsRegisterSlackCredentials(false);
toastError(err);
};
@@ -67,6 +67,9 @@ const SlackIntegration = (props) => {
setCurrentBotType(clickedBotType);
return;
+ setSlackSigningSecret('');
+ setSlackBotToken('');
setSelectedBotType(clickedBotType);