From d4223653c8be7b07ca10ee9aada60c474a5235ee Mon Sep 17 00:00:00 2001
From: Matt Kirby <MattJKirby@outlook.com>
Date: Fri, 14 Apr 2023 15:35:59 +0100
Subject: [PATCH] Fixed error with feed

---
 daily-thought-frontend/src/pages/feed.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/daily-thought-frontend/src/pages/feed.tsx b/daily-thought-frontend/src/pages/feed.tsx
index 95c23d95..ba8aa687 100644
--- a/daily-thought-frontend/src/pages/feed.tsx
+++ b/daily-thought-frontend/src/pages/feed.tsx
@@ -16,7 +16,7 @@ const userx = {
 }
 
 const Feed = () => {
-  const [user, setUser] = useState<null | User>(null)
+  const [user, setUser] = useState<undefined | User>(undefined)
 
   const fetchUser = async () => {
     const endpoint = `${process.env.NEXT_PUBLIC_USER_SERVICE_URL}api/user/${sessionStorage.getItem('username')}`
-- 
GitLab