Skip to content

Commit 02ee1b7

Browse files
authored
Merge pull request #9 from rainlab-inc/bug-fix-last-updated-room
Fixed last updated room's information
2 parents 74954c2 + 308a2e9 commit 02ee1b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/socket.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const connectToTheLobby = () => {
7474
}
7575

7676
function getLatestUpdatedRoom(rooms) {
77-
return rooms.reduce((m, v, i) => (v.last_updated > m.last_updated) && i ? v : m);
77+
return rooms.reduce((m, v, i) => (v.updated_at > m.updated_at) && i ? v : m);
7878
}
7979

8080
}

0 commit comments

Comments
 (0)