diff --git a/Frontend/src/pages/portfolio.js b/Frontend/src/pages/portfolio.js index 0ae05c0..dc2951f 100644 --- a/Frontend/src/pages/portfolio.js +++ b/Frontend/src/pages/portfolio.js @@ -45,23 +45,24 @@ export default function Portfolio() {
- {portfolio && portfolio.map((image) => ( -
openImageModal(image)} - > -
- Votable Image + {portfolio && + portfolio.map((image) => ( +
openImageModal(image)} + > +
+ Votable Image +
-
- ))} + ))}
@@ -74,28 +75,26 @@ export default function Portfolio() { + > Votable Image -

"{selectedImage.prompt}"

+

"{selectedImage.prompt}

)} ); -}; - +} export async function getServerSideProps(context) { const { req } = context; const token = req.cookies["token"]; - if (!await isAuthenticated(token)) { + if (!(await isAuthenticated(token))) { // If the user is not authenticated, redirect them to the login page return { redirect: {