Skip to content

Commit f21f016

Browse files
committed
Fix developers/tutorials page
1 parent ecca401 commit f21f016

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pages/developers/tutorials.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,11 @@ const TutorialPage = ({
144144
internalTutorials,
145145
contentNotTranslated,
146146
}: InferGetServerSidePropsType<typeof getStaticProps>) => {
147-
const { locale } = useRouter()
147+
let { locale } = useRouter()
148148
const { flipForRtl } = useRtlFlip()
149149
const tableBoxShadow = useToken("colors", "tableBoxShadow")
150150
const cardBoxShadow = useToken("colors", "cardBoxShadow")
151+
if (internalTutorials.length === 0) locale = "en"
151152
const filteredTutorialsByLang = useMemo(
152153
() =>
153154
filterTutorialsByLang(

0 commit comments

Comments
 (0)