Parcourir la source

Error msg fix

Steven Fukase il y a 5 ans
Parent
commit
d2ef8a2f82

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

@@ -37,8 +37,8 @@ const SlackIntegration = (props) => {
       setSlackWSNameInWithoutProxy(res.data.slackWorkSpaceName);
     }
     catch (err) {
-      if (err === 'missing_scope') {
-        toastError(t('admin: slack_integration.set_scope'));
+      if (err[0].message === 'missing_scope') {
+        toastError(err, t('admin:slack_integration.set_scope'));
       }
       else {
         toastError(err);