diff --git a/playground/ruff/src/Editor/Chrome.tsx b/playground/ruff/src/Editor/Chrome.tsx index a86f4e589f..559ffedd5b 100644 --- a/playground/ruff/src/Editor/Chrome.tsx +++ b/playground/ruff/src/Editor/Chrome.tsx @@ -21,10 +21,12 @@ export default function Chrome() { return; } - await persist(settings, pythonSource).catch((error) => - // eslint-disable-next-line no-console - console.error(`Failed to share playground: ${error}`), - ); + try { + await persist(serialized); + } catch (error) { + // eslint-disable-next-line no-console + console.error("Failed to share playground", error); + } }, [pythonSource, settings]); if (initPromise.current == null) {