Skip to content

Commit

Permalink
Merge pull request #46267 from bernhardoj/fix/45608-lhn-not-rerendere…
Browse files Browse the repository at this point in the history
…d-correctly-when-language-changes

Fix texts in LHN isn't all translated when changing language from another device
  • Loading branch information
bondydaa authored Jul 26, 2024
2 parents 7e3c84d + 6189686 commit 36ed8e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/LHNOptionsList/LHNOptionsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ function LHNOptionsList({style, contentContainerStyles, data, onSelectRow, optio
);

const extraData = useMemo(
() => [reportActions, reports, policy, personalDetails, data.length, draftComments, optionMode],
[reportActions, reports, policy, personalDetails, data.length, draftComments, optionMode],
() => [reportActions, reports, policy, personalDetails, data.length, draftComments, optionMode, preferredLocale],
[reportActions, reports, policy, personalDetails, data.length, draftComments, optionMode, preferredLocale],
);

const previousOptionMode = usePrevious(optionMode);
Expand Down

0 comments on commit 36ed8e0

Please sign in to comment.