add comment

Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
Timo K
2024-03-01 13:10:03 +01:00
parent 505c471034
commit c10f379f30

View File

@@ -50,6 +50,7 @@ export const useInteractiveRegistration = (): {
useEffect(() => {
if (widget) return;
// An empty registerRequest is used to get the privacy policy and recaptcha key.
authClient.current!.registerRequest({}).catch((error) => {
setPrivacyPolicyUrl(
error.data?.params["m.login.terms"]?.policies?.privacy_policy?.en?.url,