Explorar o código

changed the format of ' if '

kaoritokashiki %!s(int64=6) %!d(string=hai) anos
pai
achega
695b8ef3c3
Modificáronse 1 ficheiros con 6 adicións e 5 borrados
  1. 6 5
      src/client/js/services/AdminUsersContainer.js

+ 6 - 5
src/client/js/services/AdminUsersContainer.js

@@ -48,12 +48,13 @@ export default class AdminUsersContainer extends Container {
     if (this.isSelected(statusType)) {
       this.deleteStatusFromList(statusType);
     }
-    else if (statusType === all) {
-      this.clearStatusList();
-      this.addStatusToList(statusType);
-    }
     else {
-      this.deleteStatusFromList(all);
+      if (statusType === all) {
+        this.clearStatusList();
+      }
+      else {
+        this.deleteStatusFromList(all);
+      }
       this.addStatusToList(statusType);
     }
   }