diff --git a/src/components/Tutorial/Builder/BlocklyExample.js b/src/components/Tutorial/Builder/BlocklyExample.js index a421454..0665c41 100644 --- a/src/components/Tutorial/Builder/BlocklyExample.js +++ b/src/components/Tutorial/Builder/BlocklyExample.js @@ -73,7 +73,6 @@ class BlocklyExample extends Component { onChange = (value) => { var oldValue = this.state.checked; this.setState({checked: value}); - console.log(!value); if(oldValue !== value && !value){ this.props.deleteProperty(this.props.index, 'xml'); } @@ -96,7 +95,7 @@ class BlocklyExample extends Component { } /> : Musterlösung} - {this.state.checked ? !this.props.value || this.props.error.steps[this.props.index].xml ? + {this.state.checked ? !this.props.value || !this.props.error.steps[this.props.index].xml ? Reiche deine Blöcke ein, indem du auf den rot gefärbten Button klickst. : Die letzte Einreichung erfolgte um {this.state.input} Uhr. : null} @@ -110,15 +109,19 @@ class BlocklyExample extends Component { initialXml = null; this.props.setError(this.props.index, 'xml'); } + console.log(!this.props.value); + console.log(this.props.value); + console.log(this.props.error.steps[this.props.index].xml); + console.log(!this.props.value || this.props.error.steps[this.props.index].xml); return (
- +