core: fix validator

This commit is contained in:
undefined committed 2023-01-28 19:26:07 +08:00
1 parent bc43b2fd4e
commit caf6ce058f
5 files changed
+9 -6

No files matched your search

@@ -109,7 +109,7 @@ export default connect(mapStateToProps, mapDispatchToProps)(class ScratchpadTool
<Toolbar>
{canUsePretest && (
<ToolbarButton
disabled={this.props.isPosting || this.props.isRunning || this.props.pretestWaitSec}
disabled={this.props.isPosting || this.props.isRunning || !!this.props.pretestWaitSec}
className="scratchpad__toolbar__pretest"
onClick={() => this.props.postPretest(this.props)}
data-global-hotkey="f9"
@@ -123,7 +123,7 @@ export default connect(mapStateToProps, mapDispatchToProps)(class ScratchpadTool
</ToolbarButton>
)}
<ToolbarButton
disabled={this.props.isPosting || this.props.submitWaitSec}
disabled={this.props.isPosting || !!this.props.submitWaitSec}
className="scratchpad__toolbar__submit"
onClick={() => this.props.postSubmit(this.props)}
data-global-hotkey="f10"