Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle committed Aug 2, 2024
1 parent 855c540 commit 0473a98
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,11 @@ export const MultiSectionDigitalClock = React.forwardRef(function MultiSectionDi
return views;
}
const digitViews = views.filter((v) => v !== 'meridiem');
const result: TimeViewWithMeridiem[] = digitViews.toReversed();
digitViews.reverse();
if (views.includes('meridiem')) {
result.push('meridiem');
digitViews.push('meridiem');
}
return result;
return digitViews;
}, [isRtl, views]);

const viewTimeOptions = React.useMemo(() => {
Expand Down

0 comments on commit 0473a98

Please sign in to comment.