stash tutorial disable
This commit is contained in:
parent
222319db49
commit
b682a0f931
@ -9,7 +9,7 @@ const buttons = require('./buttons');
|
||||
const { removeTier } = require('../utils');
|
||||
|
||||
const addState = connect(
|
||||
({ itemUnequip, vboxHighlight, vboxSelected, tutorial }) => ({ itemUnequip, vboxHighlight, vboxSelected, tutorial }));
|
||||
({ itemUnequip, vboxHighlight, vboxSelected, tutorial, instance }) => ({ itemUnequip, vboxHighlight, vboxSelected, tutorial, instance }));
|
||||
|
||||
class stashElement extends preact.Component {
|
||||
shouldComponentUpdate(newProps) {
|
||||
@ -41,6 +41,7 @@ class stashElement extends preact.Component {
|
||||
vboxHighlight,
|
||||
vboxSelected,
|
||||
tutorial,
|
||||
instance,
|
||||
} = props;
|
||||
|
||||
const { storeSelect, stashSelect } = vboxSelected;
|
||||
@ -97,7 +98,7 @@ class stashElement extends preact.Component {
|
||||
: `${border} ${notValidCombo ? 'fade' : ''}`;
|
||||
|
||||
const invObject = shapes[v] ? shapes[v]() : v;
|
||||
const tutorialDisable = tutorial === 1;
|
||||
const tutorialDisable = tutorial === 1 && instance.time_control === 'Practice' && instance.rounds.length === 1;
|
||||
return (
|
||||
<label
|
||||
key={i}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user