|
|
@@ -114,7 +114,8 @@ const processReservations = (reservations: any [], allStations: string [], isFut
|
|
|
actual_fee: (reservation.total_fee || 0) - (reservation.withdraw_fee || 0),
|
|
|
current_price: snapshot_price?.current_price || 0,
|
|
|
total_power: reservation.total_power || 0,
|
|
|
- id: reservation.id || ''
|
|
|
+ id: reservation.id || '',
|
|
|
+ status: reservation.status || {}
|
|
|
} as TabItem;
|
|
|
});
|
|
|
};
|
|
|
@@ -152,6 +153,7 @@ const BookingTabViewComponentInner: React.FC<BookingTabViewComponentProps> = ({
|
|
|
const completedReservations = processReservations(reservations, stations, false);
|
|
|
const allReservationItems = [...futureReservations, ...completedReservations];
|
|
|
// const allReservationItems = [...futureReservations];
|
|
|
+ console.log('All Reservation Items Processed:', allReservationItems);
|
|
|
return (
|
|
|
<TabViewComponent
|
|
|
titles={titles}
|