Skip to content

Commit

Permalink
front: fix language query parem not present in RecommendationsSection…
Browse files Browse the repository at this point in the history
….tsx
  • Loading branch information
GresilleSiffle committed Dec 19, 2024
1 parent 7d286f8 commit 80addc9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ import UseOurExtension from './UseOurExtension';
* A home page section that displays a subset of recommended entities.
*/
const RecommendationsSection = () => {
const { t } = useTranslation();
const { i18n, t } = useTranslation();
const { name: pollName } = useCurrentPoll();

const stats = useStats({ poll: pollName });
const pollStats = getPollStats(stats, pollName);

const titleColor = '#fff';
const currentLang = i18n.resolvedLanguage || i18n.language;

// Determine the date filter applied when the user click on the see more
// button.
Expand Down Expand Up @@ -88,7 +89,7 @@ const RecommendationsSection = () => {
<Button
variant="contained"
component={Link}
to={`/search?date=${seeMoreDate}`}
to={`/search?date=${seeMoreDate}&language=${currentLang}`}
>
{t('recommendationsSection.seeMore')}
</Button>
Expand Down

0 comments on commit 80addc9

Please sign in to comment.