Fix for not showing incidents

This commit is contained in:
Senad Uka
2019-07-22 07:17:15 +02:00
parent 0c92febe52
commit 4775bff9b8
2 changed files with 36 additions and 11 deletions

View File

@@ -17,7 +17,7 @@ const fetchAllBookings = () => {
bookingData.forEach((fullBookingEntry) => {
const fees = fullBookingEntry && fullBookingEntry.fees ? fullBookingEntry.fees : [];
const firstFee = fees.length > 0 && fees[0].fee ? fees[0].fee : undefined;
const hourlyRate = firstFee && firstFee.price ? firstFee.price : undefined;
const hourlyRate = firstFee && firstFee.price ? firstFee.price : 0;
cleanedBookingReservations.push({
reservationId: fullBookingEntry['_id'],