From: Benjamin Auder Date: Thu, 12 Mar 2020 11:14:37 +0000 (+0100) Subject: Filter out Eightpieces from variants list for now X-Git-Url: https://git.auder.net/DESCRIPTION?a=commitdiff_plain;h=31ccd7e3ef9bf4ebc69231527f78e24668631194;p=vchess.git Filter out Eightpieces from variants list for now --- 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)