From 61cc112d61a01b7a6c4dead155a6271b29f2076c Mon Sep 17 00:00:00 2001 From: LianaHus Date: Tue, 3 Nov 2020 18:52:29 +0100 Subject: [PATCH] convert to integer --- .../src/app/tabs/compileTab/compilerContainer.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/remix-ide/src/app/tabs/compileTab/compilerContainer.js b/apps/remix-ide/src/app/tabs/compileTab/compilerContainer.js index b672a9221a..6d3018c9dc 100644 --- a/apps/remix-ide/src/app/tabs/compileTab/compilerContainer.js +++ b/apps/remix-ide/src/app/tabs/compileTab/compilerContainer.js @@ -353,7 +353,7 @@ class CompilerContainer { } onchangeRuns () { - this.compileTabLogic.setRuns(this._view.runs.value) + this.compileTabLogic.setRuns(parseInt(this._view.runs.value)) this.compileIfAutoCompileOn() } @@ -397,8 +397,10 @@ class CompilerContainer { } setRuns (value) { - this._view.runs.value = value - this.onchangeRuns() + if (value) { + this._view.runs.value = value + this.onchangeRuns() + } } setLanguage (lang) {