소스 검색

Error msg fix

Steven Fukase 5 년 전
부모
커밋
d2ef8a2f82
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/client/js/components/Admin/SlackIntegration/SlackIntegration.jsx

+ 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);