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 78798de
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,12 +396,12 @@ export const MultiSectionDigitalClock = React.forwardRef(function MultiSectionDi
if (!isRtl) {
return views;
}
const digitViews = views.filter((v) => v !== 'meridiem');
const result: TimeViewWithMeridiem[] = digitViews.toReversed();
const digitViews: TimeViewWithMeridiem[] = views.filter((v) => v !== 'meridiem');
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 78798de

Please sign in to comment.