Skip to content

Commit

Permalink
Fix: Logout error modal popping up on downloading other users' sketches
Browse files Browse the repository at this point in the history
  • Loading branch information
NishantBansal2003 committed Mar 28, 2024
1 parent c4de266 commit 3855786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/modules/IDE/hooks/useSketchActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const useSketchActions = () => {
}

function downloadSketch() {
dispatch(autosaveProject());
if (authenticated && canEditProjectName) dispatch(autosaveProject());
exportProjectAsZip(project.id);
}

Expand Down

0 comments on commit 3855786

Please sign in to comment.