From 223b2b44a0f4115a17cdb36a8ec89fc3d5a4fc5f Mon Sep 17 00:00:00 2001 From: garronej Date: Tue, 2 May 2023 02:56:15 +0200 Subject: [PATCH] Forgot the await --- src/keycloak-theme/login/pages/Terms.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/keycloak-theme/login/pages/Terms.tsx b/src/keycloak-theme/login/pages/Terms.tsx index c4744cd..1405a33 100644 --- a/src/keycloak-theme/login/pages/Terms.tsx +++ b/src/keycloak-theme/login/pages/Terms.tsx @@ -40,9 +40,9 @@ export default function Terms(props: PageProps response.text()); + const markdownString = await fetch(tos_url).then(response => response.text()); - return tosRawMarkdown; + return markdownString; } });