Skip to content

Commit

Permalink
wrong property name
Browse files Browse the repository at this point in the history
  • Loading branch information
nesimtunc committed May 12, 2020
1 parent 74954c2 commit 308a2e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

}
Expand Down

0 comments on commit 308a2e9

Please sign in to comment.