Skip to content
Snippets Groups Projects
Commit 12dbf248 authored by danielmyren's avatar danielmyren
Browse files

Change console message

parent ed04fa97
No related branches found
No related tags found
No related merge requests found
...@@ -11,11 +11,9 @@ import { GlobalContext } from '../../Context/GlobalContext'; ...@@ -11,11 +11,9 @@ import { GlobalContext } from '../../Context/GlobalContext';
function TopNavBar({}) { function TopNavBar({}) {
const navigate = useNavigate(); const navigate = useNavigate();
const {serverAddress, serverPort, loggedInStatus, setLoggedInStatus} = useContext(GlobalContext); const {serverAddress, serverPort, loggedInStatus, setLoggedInStatus} = useContext(GlobalContext);
console.log(loggedInStatus);
const handleSignOut = async (e) => { const handleSignOut = async (e) => {
try { try {
const response = await axios.post(serverAddress + ':' + serverPort + '/api/logout', { const response = await axios.post(serverAddress + ':' + serverPort + '/api/logout', {
withCredentials: true, // Include credentials (cookies) in the request withCredentials: true, // Include credentials (cookies) in the request
...@@ -26,9 +24,9 @@ function TopNavBar({}) { ...@@ -26,9 +24,9 @@ function TopNavBar({}) {
if (response.data.success) { if (response.data.success) {
console.log("loginggg oiyt") console.log("Logging out")
} else { } else {
console.log("No success logout") console.log("Failed logout")
} }
} catch (error) { } catch (error) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment