fix shit
This commit is contained in:
parent
ec81393291
commit
e12e3e6c4b
@ -20,6 +20,7 @@ function Info(args) {
|
|||||||
} = args;
|
} = args;
|
||||||
|
|
||||||
function CrypVar() {
|
function CrypVar() {
|
||||||
|
if (!info) return false;
|
||||||
const [type, value] = info;
|
const [type, value] = info;
|
||||||
if (!type) return false;
|
if (!type) return false;
|
||||||
|
|
||||||
@ -42,6 +43,10 @@ function Info(args) {
|
|||||||
} else if (COLOURS[value]) {
|
} else if (COLOURS[value]) {
|
||||||
itemDetails = COLOURS[value];
|
itemDetails = COLOURS[value];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!itemDetails) {
|
||||||
|
return console.warn('UNHANLDED VAR', value);
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
<div className="info-var">
|
<div className="info-var">
|
||||||
{value} - {itemDetails.description}
|
{value} - {itemDetails.description}
|
||||||
|
|||||||
@ -96,7 +96,7 @@ function registerEvents(store) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function clearCombiner() {
|
function clearCombiner() {
|
||||||
store.dispatch(actions.setInfo(null));
|
store.dispatch(actions.setInfo([]));
|
||||||
store.dispatch(actions.setCombiner([null, null, null]));
|
store.dispatch(actions.setCombiner([null, null, null]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -194,6 +194,7 @@ const defaultInfo = [null, null];
|
|||||||
function infoReducer(state = defaultInfo, action) {
|
function infoReducer(state = defaultInfo, action) {
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
case actions.SET_INFO:
|
case actions.SET_INFO:
|
||||||
|
if (!action.value) debugger
|
||||||
return action.value;
|
return action.value;
|
||||||
default:
|
default:
|
||||||
return state;
|
return state;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user