From 1ed0a1412502bff0ddbc0b8b4c4fbf7e514b4341 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Fri, 6 Jun 2025 17:44:36 -0400 Subject: [PATCH] bug: logout (#1073) Fixes #1069 ## Description: Fix logout bug by wrapping ternary expression. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com> --- src/client/jwt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/jwt.ts b/src/client/jwt.ts index 985373ea2..9d76ff857 100644 --- a/src/client/jwt.ts +++ b/src/client/jwt.ts @@ -50,7 +50,7 @@ export async function logOut(allSessions: boolean = false) { __isLoggedIn = false; const response = await fetch( - getApiBase() + allSessions ? "/revoke" : "/logout", + getApiBase() + (allSessions ? "/revoke" : "/logout"), { method: "POST", headers: {