diff --git a/src/js/room-picker.js b/src/js/room-picker.js index 810f5ee..63d1da7 100644 --- a/src/js/room-picker.js +++ b/src/js/room-picker.js @@ -141,7 +141,6 @@ class Room extends ElemJS { } else { string += (4000000000000 - this.timeline.latest) // good until 2065 :) } - console.log(string) return string } diff --git a/src/js/store/subscribe_map_list.js b/src/js/store/subscribe_map_list.js index dfbdc6c..794a8da 100644 --- a/src/js/store/subscribe_map_list.js +++ b/src/js/store/subscribe_map_list.js @@ -73,14 +73,11 @@ class SubscribeMapList extends Subscribable { sortByString() { this.list.sort((a, b) => { - let r const orderA = this.map.get(a).value().order const orderB = this.map.get(b).value().order - if (orderA < orderB) r = -1 - else if (orderA > orderB) r = 1 - else r = 0 - console.log("comparing", orderA, orderB, r) - return r + if (orderA < orderB) return -1 + else if (orderA > orderB) return 1 + else return 0 }) this.broadcast("changeItem") }