Forgot the await

This commit is contained in:
garronej 2023-05-02 02:56:15 +02:00
parent 9e35f114c3
commit 223b2b44a0

View File

@ -40,9 +40,9 @@ export default function Terms(props: PageProps<Extract<KcContext, { pageId: "ter
return tos_url; return tos_url;
} }
const tosRawMarkdown = fetch(tos_url).then(response => response.text()); const markdownString = await fetch(tos_url).then(response => response.text());
return tosRawMarkdown; return markdownString;
} }
}); });