From 30d1f423cbd44b8dc0cb247cc53f949c8c3c94c3 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Fri, 24 Mar 2023 21:50:50 +0100 Subject: [PATCH] fix: remove loading state on eval error --- website/src/repl/Repl.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/website/src/repl/Repl.jsx b/website/src/repl/Repl.jsx index 67b368ad..b83bbb83 100644 --- a/website/src/repl/Repl.jsx +++ b/website/src/repl/Repl.jsx @@ -123,6 +123,9 @@ export function Repl({ embedded = false }) { setLatestCode(code); window.location.hash = '#' + encodeURIComponent(btoa(code)); }, + onEvalError: (err) => { + setPending(false); + }, onToggle: (play) => !play && cleanupDraw(false), drawContext, });