Skip to content

Commit

Permalink
[Client] Fix draft queues: Make sure sessionID isn't set when loading…
Browse files Browse the repository at this point in the history
… the /draftqueue page.
  • Loading branch information
Senryoku committed Oct 17, 2023
1 parent 8a2a17e commit 7332831
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,12 @@ export default defineComponent({

const storedSessionSettings = localStorage.getItem(localStorageSessionSettingsKey) ?? "{}";

const query = {
const query: Record<string, string> = {
userID: userID,
userName: userName,
sessionSettings: storedSessionSettings,
sessionID: sessionID,
};
if (sessionID) query.sessionID = sessionID; // Note: Setting sessionID to undefined will send it as the "undefined" string, and that's not what we want...

// Socket Setup
const socket: Socket<ServerToClientEvents, ClientToServerEvents> = io({
Expand Down

0 comments on commit 7332831

Please sign in to comment.