diff --git a/js/components/ui.js b/js/components/ui.js index 99cf9a1..6473cce 100644 --- a/js/components/ui.js +++ b/js/components/ui.js @@ -395,7 +395,7 @@ class Index extends React.Component { > Wind - {Object.keys(Species).map((n) => + {Object.keys(Species).filter(x => !Number.isInteger(Number.parseInt(x))).map((n) => ElementButton(n, selectedElement, (id) => this.setState({ selectedElement: id }) ) diff --git a/js/render.js b/js/render.js index 0442a85..9628823 100644 --- a/js/render.js +++ b/js/render.js @@ -73,7 +73,7 @@ let snapshot = (universe) => { let pallette = () => { let canvas = document.createElement("canvas"); - let species = Object.values(Species); + let species = Object.values(Species).filter(x => Number.isInteger(x));; let range = Math.max(...species) + 1; let universe = Universe.new(range, 1); canvas.width = range;