Commit 88fd7601 authored by Matt Glorion's avatar Matt Glorion
Browse files

[UPD] remove journeys w/o transportation mean

parent d0ffa319
......@@ -29,18 +29,22 @@ class MeetingScenario extends Scenario {
this._meetingDuration = meetingDuration;
this._numberOfParticipants = numberOfParticipants;
const formattedSoftwarePayload = [];
const formattedSoftware = [];
switch (software.name.toUpperCase()) {
case '':
break;
case 'OTHER':
formattedSoftwarePayload.push({ name: 'SKYPE' });
formattedSoftware.push({ name: 'SKYPE' });
break;
default:
formattedSoftwarePayload.push({ name: software.name });
formattedSoftware.push({ name: software.name });
}
this._damage = new MeetingDamage(hardware, formattedSoftwarePayload, journey);
const formattedJourney = journey.filter((journey) => {
return journey.mean !== '';
});
this._damage = new MeetingDamage(hardware, formattedSoftware, formattedJourney);
}
// Getters
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment