Remove unnecessary, accidentally inverted condition for room ordering (#10178)

This commit is contained in:
Janne Mareike Koschinski 2023-02-16 15:54:32 +01:00 committed by GitHub
parent 73360026ab
commit f7bea2cae5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,7 +104,6 @@ export class ImportanceAlgorithm extends OrderingAlgorithm {
// Every other sorting type affects the categories, not the whole tag.
const categorized = this.categorizeRooms(rooms);
for (const category of Object.keys(categorized)) {
if (!isNaN(Number(category))) continue;
const notificationColor = category as unknown as NotificationColor;
const roomsToOrder = categorized[notificationColor];
categorized[notificationColor] = sortRoomsWithAlgorithm(