ryuichi-e %!s(int64=6) %!d(string=hai) anos
pai
achega
af49207760
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/client/js/components/Admin/UserManagement.jsx

+ 1 - 2
src/client/js/components/Admin/UserManagement.jsx

@@ -48,8 +48,7 @@ class UserManagement extends React.Component {
   async handleClick(statusType) {
     const { adminUsersContainer } = this.props;
     if (!this.validateToggleStatus(statusType)) {
-      await adminUsersContainer.setState({ isNotifyCommentShow: true });
-      return;
+      return this.setState({ isNotifyCommentShow: true });
     }
 
     if (adminUsersContainer.state.isNotifyCommentShow === true) {