Browse Source

Small fix to last commit

Kristian Vos 3 years ago
parent
commit
2aa87d2a9e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      backend/logic/actions/apis.js

+ 1 - 1
backend/logic/actions/apis.js

@@ -145,7 +145,7 @@ export default {
 	 * @param {Function} cb - callback
 	 */
 	leaveRoom(session, room, cb) {
-		if (room === "home" || room.startsWith("profile.") || room.startsWith("manage-station.") || page.startsWith("edit-song.")) {
+		if (room === "home" || room.startsWith("profile.") || room.startsWith("manage-station.") || room.startsWith("edit-song.")) {
 			WSModule.runJob("SOCKET_LEAVE_ROOM", {
 				socketId: session.socketId,
 				room