manifest fix

This commit is contained in:
ntr
2019-04-08 13:29:03 +10:00
parent 37be6b633c
commit 02b539d855
6 changed files with 14 additions and 5 deletions
+1 -2
View File
@@ -12,7 +12,7 @@ function Info(args) {
instance,
} = args;
function infoVar(info) {
function infoVar([type, value]) {
let red = 0; let blue = 0; let green = 0;
instance.cryps.forEach(cryp => {
red += cryp.colours.red;
@@ -20,7 +20,6 @@ function Info(args) {
green += cryp.colours.green;
});
const teamColours = { red, blue, green };
const [type, value] = info;
if (type === 'item') {
let itemDetails;
+1 -1
View File
@@ -26,7 +26,7 @@ function Cryp(props) {
function skillClick() {
if (!skill) return false;
setInfo('skill', { skill, cryp });
setActiveCryp(cryp);
return setActiveCryp(cryp);
}
return <button key={i} className="cryp-skill-btn right" onClick={skillClick} >{s}</button>;