diff --git a/website/src/repl/Repl.jsx b/website/src/repl/Repl.jsx index 31058ac0..6c2c307b 100644 --- a/website/src/repl/Repl.jsx +++ b/website/src/repl/Repl.jsx @@ -210,7 +210,7 @@ export function Repl({ embedded = false }) { editorRef.current.repl.evaluate(code); }; - const handleShare = async () => shareCode(activeCode); + const handleShare = async () => shareCode(replState.code); const context = { embedded, started,