Skip to content

Commit

Permalink
feat: disable last order of the vacations
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenGonzalezAutentia committed Jun 4, 2024
1 parent 1491566 commit c9d20da
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ interface Props {
const VacationTableDesktop: FC<Props> = (props) => {
const { t } = useTranslation()
const bgColor = useColorModeValue('white', undefined)
const descendentSortingVacationHistory = props.vacations.sort(
(vacationA, vacationB) => vacationB.id - vacationA.id
)

return (
<Table bgColor={bgColor}>
Expand All @@ -36,7 +33,7 @@ const VacationTableDesktop: FC<Props> = (props) => {
<Td colSpan={6}>{t('vacation_table.empty')}</Td>
</Tr>
)}
{descendentSortingVacationHistory.map((vacation) => (
{props.vacations.map((vacation) => (
<Tr key={vacation.id}>
<Td>{`${chrono(vacation.startDate).format('yyyy-MM-dd')} - ${chrono(
vacation.endDate
Expand Down

0 comments on commit c9d20da

Please sign in to comment.