diff --git a/src/components/Chat.jsx b/src/components/Chat.jsx index 40b8e9d..dd17e71 100644 --- a/src/components/Chat.jsx +++ b/src/components/Chat.jsx @@ -70,7 +70,8 @@ function Chat() { }, IncreaseAvailableActions).then(async (response) => { IncreaseAvailableActions() setOutput(response) - }).catch(() => { + }).catch((error) => { + console.log(error) IncreaseImmediatelyAvailableActions() }) } @@ -91,7 +92,8 @@ function Chat() { }, DecreaseAvailableActions).then(async (response) => { IncreaseAvailableActions() setOutput(response) - }).catch(() => { + }).catch((error) => { + console.log(error) IncreaseImmediatelyAvailableActions() }) } diff --git a/src/components/Header.jsx b/src/components/Header.jsx index 997e251..3dd0e2b 100644 --- a/src/components/Header.jsx +++ b/src/components/Header.jsx @@ -135,15 +135,17 @@ const Header = ({setOpenSettings}) => { /> - - - - Profile - My account - Logout - - + + + + + + Profile + My account + Logout + + {location.pathname === '/NeuraChatAi/' && @@ -221,6 +223,23 @@ const Header = ({setOpenSettings}) => { + + + +
+ Username + joined 20 Jun 2023 +
+
) diff --git a/src/contexts/ActionsContext.jsx b/src/contexts/ActionsContext.jsx index a99515a..f5090d3 100644 --- a/src/contexts/ActionsContext.jsx +++ b/src/contexts/ActionsContext.jsx @@ -17,11 +17,10 @@ const ActionsProvider = ({children}) => { setAvailableActions((prevActions) => prevActions + 1) }, 20000) } - console.log(timeRemaining) } const IncreaseImmediatelyAvailableActions = () => { - if (availableActions <= 3) { + if (availableActions < 3) { setAvailableActions((prevActions) => prevActions + 1); } }