Skip to content

Commit d93e8cc

Browse files
committed
update tutorials page
1 parent a256928 commit d93e8cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pages/[locale]/developers/tutorials.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ const TutorialPage = ({
159159
internalTutorials,
160160
contentNotTranslated,
161161
}: InferGetServerSidePropsType<typeof getStaticProps>) => {
162-
const locale = useLocale()
162+
let locale = useLocale()
163+
164+
if (internalTutorials.length === 0) locale = "en"
163165
const filteredTutorialsByLang = useMemo(
164166
() =>
165167
filterTutorialsByLang(

0 commit comments

Comments
 (0)