Filter out Eightpieces from variants list for now
authorBenjamin Auder <benjamin.auder@somewhere>
Thu, 12 Mar 2020 11:14:37 +0000 (12:14 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Thu, 12 Mar 2020 11:14:37 +0000 (12:14 +0100)
client/src/store.js

index 668f999..8fe46b9 100644 (file)
@@ -30,8 +30,9 @@ export const store = {
         alert("Variants loading failed: reload the page");
         return;
       }
-      this.state.variants = json.variantArray.sort(
-        (v1,v2) => v1.name.localeCompare(v2.name));
+      this.state.variants = json.variantArray
+        .filter(v => v.name != "Eightpieces") //TODO: not ready yet
+        .sort((v1,v2) => v1.name.localeCompare(v2.name));
     });
     let mysid = localStorage.getItem("mysid");
     // Assign mysid only once (until next time user clear browser data)