From 308a2e9010be765bf0c2a8079024c72ba5c68dc3 Mon Sep 17 00:00:00 2001 From: Nesim TUNC Date: Tue, 12 May 2020 22:29:05 +0900 Subject: [PATCH] wrong property name --- assets/js/socket.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/socket.js b/assets/js/socket.js index 6deaee5..019f0c7 100644 --- a/assets/js/socket.js +++ b/assets/js/socket.js @@ -74,7 +74,7 @@ const connectToTheLobby = () => { } function getLatestUpdatedRoom(rooms) { - return rooms.reduce((m, v, i) => (v.last_updated > m.last_updated) && i ? v : m); + return rooms.reduce((m, v, i) => (v.updated_at > m.updated_at) && i ? v : m); } }