manifest fix
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user