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.
1 parent 2619708 commit be44bc6Copy full SHA for be44bc6
packages/app/src/sandbox/compile.js
@@ -347,7 +347,10 @@ async function compile({
347
// We set it as a time value for people that run two sandboxes on one computer
348
// they execute at the same time and we don't want them to conflict, so we check
349
// if the message was set a second ago
350
- if (Date.now() < localStorage.getItem('running') > 1000) {
+ if (
351
+ localStorage.getItem('running') &&
352
+ Date.now() - localStorage.getItem('running') > 1000
353
+ ) {
354
localStorage.removeItem('running');
355
showRunOnClick();
356
return;
0 commit comments