Skip to content

Commit d76f10d

Browse files
committed
Fix agenda rooms
1 parent c1f12a2 commit d76f10d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/commands/agenda.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,11 @@ async function action(week: string, options: CommandOptions) {
142142

143143
let rooms = activity.modality === 'Distanciel' ? 'Remote' : 'Unknown';
144144

145+
console.log(activity.rooms);
146+
145147
if (activity.rooms?.length > 0) {
146-
const roomInfo = activity.rooms[0];
147148
rooms = activity.rooms
148-
.map(
149-
() => `${roomInfo.campus} ${roomInfo.name} (${roomInfo.floor})`,
150-
)
149+
.map((room) => `${room.campus} ${room.name} (${room.floor})`)
151150
.join(' - ');
152151
}
153152

0 commit comments

Comments
 (0)