Enable the lang of the term to be undefined

This commit is contained in:
Joseph Garrone 2024-06-07 08:03:13 +02:00
parent 33460afaf2
commit 485ca28a29

View File

@ -10,7 +10,7 @@ import { KcContext } from "../KcContext";
const obs = createStatefulObservable<
| {
termsMarkdown: string;
termsLanguageTag: string;
termsLanguageTag: string | undefined;
}
| undefined
>(() => undefined);
@ -30,7 +30,7 @@ export function useDownloadTerms(params: {
kcContext: KcContextLike;
downloadTermsMarkdown: (params: {
currentLanguageTag: string;
}) => Promise<{ termsMarkdown: string; termsLanguageTag: string }>;
}) => Promise<{ termsMarkdown: string; termsLanguageTag: string | undefined }>;
}) {
const { kcContext, downloadTermsMarkdown } = params;