Revert "client/journeysView: productName is now optional"

This reverts commit 150e7300ce.
This commit is contained in:
Milan Pässler 2020-02-07 17:29:33 +01:00
parent 838e4ec3a9
commit b065c3695b

View file

@ -61,10 +61,7 @@ const journeyOverviewTemplate = (data, key) => {
if (leg.isWalking || leg.isTransfer) continue;
changes = changes+1;
if (leg.line.productName)
products.push(leg.line.productName);
else
products.push(leg.mode);
products.push(leg.line.productName);
}
products = [...new Set(products)];