No mdash if no end time

This commit is contained in:
ponas committed 2019-05-15 00:30:09 +02:00
1 parent 51aed025a3
commit 8e1d37be93
1 file changed
+1 -2
+1 -2
View File
@@ -75,8 +75,7 @@ export const EventTemplate = ({
<div className="event-time">
{/* TODO: make the API stop assuming event duration is 2 hours when unspecified? */}
kl. {moment(startTime).format('HH:mm')}
&mdash;
{endTime && moment(endTime).format('HH:mm')}
{endTime && '&mdash;' + moment(endTime).format('HH:mm')}
</div>
<div className="price">
Pris: {formatPrices(priceRegular, priceStudent)}