| @@ -17,9 +17,11 @@ | ||
| 17 | 17 | <div class="yatra-quick-fact-content"> |
| 18 | 18 | <div class="yatra-quick-fact-label"><?php echo esc_html__('Duration', 'yatra'); ?></div> |
| 19 | 19 | <div class="yatra-quick-fact-value"> |
| 20 | 20 | <?php |
| 21 | - if ($trip->getTripType() === 'single_day') { | |
| 21 | + if ($trip->isHoursBased()) { | |
| 22 | + echo esc_html(yatra_format_duration(0, null, $trip->getDurationHours())); | |
| 23 | + } elseif ($trip->getTripType() === 'single_day') { | |
| 22 | 24 | echo esc_html__('Day Trip', 'yatra'); |
| 23 | 25 | } else { |
| 24 | 26 | echo esc_html(yatra_format_duration($trip->getDurationDays(), $trip->getDurationNights())); |
| 25 | 27 | } |