diff --git a/playground/ruff/src/Editor/Chrome.tsx b/playground/ruff/src/Editor/Chrome.tsx index 1f4f94548f..be744f2412 100644 --- a/playground/ruff/src/Editor/Chrome.tsx +++ b/playground/ruff/src/Editor/Chrome.tsx @@ -20,13 +20,7 @@ export default function Chrome() { if (settings == null || pythonSource == null) { return; } - - try { - await persist(settings, pythonSource); - } catch (error) { - // eslint-disable-next-line no-console - console.error("Failed to share playground", error); - } + await persist(settings, pythonSource); }, [pythonSource, settings]); if (initPromise.current == null) { diff --git a/playground/ty/src/Playground.tsx b/playground/ty/src/Playground.tsx index fcb8627ab6..a04fe282ca 100644 --- a/playground/ty/src/Playground.tsx +++ b/playground/ty/src/Playground.tsx @@ -52,10 +52,7 @@ export default function Playground() { const serialized = serializeFiles(files); if (serialized != null) { - await persist(serialized).catch((error) => { - // eslint-disable-next-line no-console - console.error("Failed to share playground", error); - }); + await persist(serialized) } }, [files]);