diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index a62c72b..7539aab 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -210,12 +210,12 @@ export default function Layout({ children, user, loading, noPaper }) { id='zipline-user-menu' anchorEl={anchorEl} open={open} - onClose={handleClose} + onClose={handleClose(null)} MenuListProps={{ 'aria-labelledby': 'basic-button', }} > - + {user.username} @@ -335,12 +335,12 @@ export default function Layout({ children, user, loading, noPaper }) { id='zipline-user-menu' anchorEl={anchorEl} open={open} - onClose={handleClose} + onClose={handleClose(null)} MenuListProps={{ 'aria-labelledby': 'basic-button', }} > - + {user.username} @@ -414,4 +414,4 @@ export default function Layout({ children, user, loading, noPaper }) { ); -} \ No newline at end of file +} diff --git a/src/pages/[...id].tsx b/src/pages/[...id].tsx index 0062780..9a9b4d4 100644 --- a/src/pages/[...id].tsx +++ b/src/pages/[...id].tsx @@ -6,7 +6,6 @@ import config from 'lib/config'; import prisma from 'lib/prisma'; export default function EmbeddedImage({ image, title, username, color, normal, embed }) { - console.log(normal, embed); const dataURL = (route: string) => `${route}/${image.file}`; return ( @@ -89,4 +88,4 @@ export const getServerSideProps: GetServerSideProps = async (context) => { embed: config.uploader.embed_route } }; -}; \ No newline at end of file +};