mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Merged PR 2072: fix(reward-order-confirmation): Only display one orderDate if other ones are...
fix(reward-order-confirmation): Only display one orderDate if other ones are equal Ref: #5517
This commit is contained in:
committed by
Lorenz Hilpert
parent
6c41214d69
commit
39e56a275e
@@ -49,7 +49,7 @@ export class OrderConfirmationHeaderComponent {
|
|||||||
if (!orders || orders.length === 0) {
|
if (!orders || orders.length === 0) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
return orders
|
const formattedDates = orders
|
||||||
.map((order) => {
|
.map((order) => {
|
||||||
if (!order.orderDate) {
|
if (!order.orderDate) {
|
||||||
return null;
|
return null;
|
||||||
@@ -60,7 +60,8 @@ export class OrderConfirmationHeaderComponent {
|
|||||||
);
|
);
|
||||||
return formatted ? `${formatted} Uhr` : null;
|
return formatted ? `${formatted} Uhr` : null;
|
||||||
})
|
})
|
||||||
.filter(Boolean)
|
.filter(Boolean);
|
||||||
.join('; ');
|
|
||||||
|
return [...new Set(formattedDates)].join('; ');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user