We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 50771f9 + 88c8ec9 commit 22d1bd5Copy full SHA for 22d1bd5
src/App/App.js
@@ -97,6 +97,16 @@ class App extends Component {
97
}
98
99
this.addToLog(result)
100
+ }).catch(error => {
101
+ this.setFinishedStatus()
102
+
103
+ let currentResults = this.state.results
104
+ currentResults.unshift('Code cannot be executed. Network connection to server cannot be established.\n')
105
106
+ this.setState({
107
+ ...this.state,
108
+ results: currentResults
109
+ })
110
})
111
112
@@ -124,8 +134,7 @@ class App extends Component {
124
134
125
135
this.setState({
126
136
...this.state,
127
- results: currentResults,
128
- disabled: false
137
129
138
130
139
131
140
0 commit comments