X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fstore.js;fp=client%2Fsrc%2Fstore.js;h=8fe46b90801b44837251c08ddc14c4027bf781b9;hb=31ccd7e3ef9bf4ebc69231527f78e24668631194;hp=668f999d3af77aa2c99f8291154ddab7b35fd2de;hpb=6b7b2cf720e6255e4da0dc34fee363c456346a58;p=vchess.git diff --git a/client/src/store.js b/client/src/store.js index 668f999d..8fe46b90 100644 --- a/client/src/store.js +++ b/client/src/store.js @@ -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)