diff --git a/packages/tldraw/src/hooks/useFileSystem.ts b/packages/tldraw/src/hooks/useFileSystem.ts index 99ee9ba39..e2a2350e3 100644 --- a/packages/tldraw/src/hooks/useFileSystem.ts +++ b/packages/tldraw/src/hooks/useFileSystem.ts @@ -18,8 +18,10 @@ export function useFileSystem() { const onNewProject = React.useCallback( async (app: TldrawApp) => { - await promptSaveBeforeChange(app) - app.newProject() + if (window.confirm('Do you want to create a new project?')) { + await promptSaveBeforeChange(app) + app.newProject() + } }, [promptSaveBeforeChange] )