Skip to content

Commit

Permalink
chore: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
potts99 committed Nov 1, 2024
1 parent cd794d1 commit cfb27d0
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions apps/client/components/NotebookEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,16 +152,6 @@ export default function NotebookEditor() {
setValue(editor.document);
};

function checkCanView() {
if (data && data.note.userId !== user.user.id) {
router.back();
}
}

useEffect(() => {
checkCanView();
}, [data]);

return (
<>
<div className="flex flex-row items-center justify-end py-1 px-6 space-x-4 mt-2">
Expand Down

0 comments on commit cfb27d0

Please sign in to comment.